summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpsig
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2024-04-12 01:32:20 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2024-04-12 01:32:20 +0200
commitd5514f487793d06143aaf345fab01304f427e052 (patch)
tree85e037d54459301ac563ea04db7b40e800da6468 /pkgs/development/python-modules/httpsig
parenta64fa316aa181ec9abd330bd4ce2b9aeb4ed3dfa (diff)
python312Packages.httpsig: propagate setuptools
and convert to PEP517 build and lingo, convert hash to SRI format and configure and explicit check hook.
Diffstat (limited to 'pkgs/development/python-modules/httpsig')
-rw-r--r--pkgs/development/python-modules/httpsig/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/httpsig/default.nix b/pkgs/development/python-modules/httpsig/default.nix
index f1529bf212da..fe7ed11c2fff 100644
--- a/pkgs/development/python-modules/httpsig/default.nix
+++ b/pkgs/development/python-modules/httpsig/default.nix
@@ -1,30 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
+, setuptools
, setuptools-scm
, pycryptodome
, requests
, six
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "httpsig";
version = "1.3.0";
- format = "setuptools";
+ pyproject = true;
src = fetchPypi {
inherit pname version;
- sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
+ hash = "sha256-cdbVAkYSnE98/sIPXlfjUdK4SS1jHMKqlnkUrPkfbOY=";
};
- buildInputs = [
+ build-system = [
+ setuptools
setuptools-scm
];
- propagatedBuildInputs = [
+ dependencies = [
pycryptodome
requests
six
+ setuptools
+ ];
+
+ nativeCheckInputs = [
+ pytestCheckHook
];
pythonImportsCheck = [ "httpsig" ];