3
0
Fork 0
forked from mirrors/nixpkgs

python.pkgs.service_identity: add meta and run tests

This commit is contained in:
Robin Gloster 2017-12-25 19:43:22 +01:00
parent 8fb981fef6
commit 1e974ff092
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -1,6 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, characteristic , characteristic
, pyasn1 , pyasn1
, pyasn1-modules , pyasn1-modules
@ -16,23 +16,23 @@ buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "pyca";
sha256 = "4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab"; repo = pname;
rev = version;
sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
]; ];
checkInputs = [ checkInputs = [ pytest ];
pytest checkPhase = "py.test";
];
checkPhase = '' meta = with lib; {
py.test description = "Service identity verification for pyOpenSSL";
''; license = licenses.mit;
homepage = "https://service-identity.readthedocs.io";
# Tests not included in archive };
doCheck = false; }
}