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