python packages: built from git

This commit is contained in:
Daniel Langbein 2024-08-15 21:06:18 +02:00
parent c21bfb996d
commit 84e65eb408
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 11 additions and 13 deletions

View File

@ -8,23 +8,22 @@ let
(
buildPythonPackage rec {
pname = "de.p1st.monitor";
version = "0.12.1"; # TOODO 0.12.2
# Important: When updating the version number, adjust the Git revision below accordingly!
version = "0.13.0";
# https://nixos.wiki/wiki/Packaging/Python#Fix_Missing_setup.py
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-exwn7q7QvLnWRq9TrG6jztejc2A0P4CxB8lKS981ZGA=";
src = builtins.fetchGit {
url = "https://codeberg.org/privacy1st/de-p1st-monitor";
rev = "7c57eba12a512a3a4fe72c2d5cbfa80cebdbd3bd";
};
propagatedBuildInputs = [
# Dependencies
pkgs.python3Packages.psutil
# Build dependencies
setuptools
build
twine
];
nativeBuildInputs = with pkgs.python3Packages; [
setuptools
];
}
)
];

View File

@ -5,24 +5,23 @@ let
(
buildPythonPackage rec {
pname = "netcup-dns";
# Important: When updating the version number, adjust the Git revision below accordingly!
version = "0.2.3";
# https://nixos.wiki/wiki/Packaging/Python#Fix_Missing_setup.py
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9iZWO5RBN/iD3qZdiI4f+kzvZm57isex2Hcmm8ai9Js=";
src = builtins.fetchGit {
url = "https://codeberg.org/privacy1st/netcup-dns";
rev = "f231334e1b7858061efc7b3e98d21a2d10346369";
};
propagatedBuildInputs = [
# Dependencies
pkgs.python3Packages.requests
pkgs.python3Packages.nc-dnsapi
# Build dependencies
setuptools
build
twine
];
nativeBuildInputs = with pkgs.python3Packages; [
setuptools
];
}
)
];