python312Packages.httpsig: propagate setuptools

and convert to PEP517 build and lingo, convert hash to SRI format and
configure and explicit check hook.
This commit is contained in:
Martin Weinelt 2024-04-12 01:32:20 +02:00
parent a64fa316aa
commit d5514f4877
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 12 additions and 4 deletions

View File

@ -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" ];