Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.service_identity: add meta and run tests

+14 -14
+14 -14
pkgs/development/python-modules/service_identity/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , characteristic 5 5 , pyasn1 6 6 , pyasn1-modules ··· 16 16 name = "${pname}-${version}"; 17 17 18 18 19 - src = fetchPypi { 20 - inherit pname version; 21 - sha256 = "4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab"; 19 + src = fetchFromGitHub { 20 + owner = "pyca"; 21 + repo = pname; 22 + rev = version; 23 + sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0"; 22 24 }; 23 25 24 26 propagatedBuildInputs = [ 25 27 characteristic pyasn1 pyasn1-modules pyopenssl idna attrs 26 28 ]; 27 29 28 - checkInputs = [ 29 - pytest 30 - ]; 31 - 32 - checkPhase = '' 33 - py.test 34 - ''; 30 + checkInputs = [ pytest ]; 31 + checkPhase = "py.test"; 35 32 36 - # Tests not included in archive 37 - doCheck = false; 38 - } 33 + meta = with lib; { 34 + description = "Service identity verification for pyOpenSSL"; 35 + license = licenses.mit; 36 + homepage = "https://service-identity.readthedocs.io"; 37 + }; 38 + }