python.pkgs.service-identity: move expression

This commit is contained in:
Frederik Rietdijk 2017-08-30 22:03:20 +02:00
parent 8d015553d5
commit f1796b8be0
2 changed files with 36 additions and 21 deletions

View 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
'';
}

View File

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