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 { buildPythonPackage rec {
pname = "de.p1st.monitor"; 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 # https://nixos.wiki/wiki/Packaging/Python#Fix_Missing_setup.py
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = builtins.fetchGit {
inherit pname version; url = "https://codeberg.org/privacy1st/de-p1st-monitor";
sha256 = "sha256-exwn7q7QvLnWRq9TrG6jztejc2A0P4CxB8lKS981ZGA="; rev = "7c57eba12a512a3a4fe72c2d5cbfa80cebdbd3bd";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
# Dependencies # Dependencies
pkgs.python3Packages.psutil pkgs.python3Packages.psutil
# Build dependencies # Build dependencies
setuptools
build build
twine twine
]; ];
nativeBuildInputs = with pkgs.python3Packages; [
setuptools
];
} }
) )
]; ];

View File

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