python.pkgs.service-identity: move expression
This commit is contained in:
parent
8d015553d5
commit
f1796b8be0
35
pkgs/development/python-modules/service_identity/default.nix
Normal file
35
pkgs/development/python-modules/service_identity/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, characteristic
|
||||
, pyasn1
|
||||
, pyasn1-modules
|
||||
, pyopenssl
|
||||
, idna
|
||||
, attrs
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "service_identity";
|
||||
version = "16.0.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dih7i7d36nbllcxgfkvbnaj1wlzhwfnpr4b97dz74czylif4c06";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
}
|
@ -25585,27 +25585,7 @@ EOF
|
||||
|
||||
};
|
||||
|
||||
service-identity = buildPythonPackage rec {
|
||||
name = "service-identity-${version}";
|
||||
version = "16.0.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/s/service_identity/service_identity-${version}.tar.gz";
|
||||
sha256 = "0dih7i7d36nbllcxgfkvbnaj1wlzhwfnpr4b97dz74czylif4c06";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
|
||||
];
|
||||
|
||||
buildInputs = with self; [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
};
|
||||
service-identity = callPackage ../development/python-modules/service_identity { };
|
||||
|
||||
signedjson = buildPythonPackage rec {
|
||||
name = "signedjson-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user