tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.service_identity: add meta and run tests
Robin Gloster
8 years ago
1e974ff0
8fb981fe
+14
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
service_identity
default.nix
+14
-14
pkgs/development/python-modules/service_identity/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
, characteristic
5
5
, pyasn1
6
6
, pyasn1-modules
···
16
16
name = "${pname}-${version}";
17
17
18
18
19
19
-
src = fetchPypi {
20
20
-
inherit pname version;
21
21
-
sha256 = "4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab";
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "pyca";
21
21
+
repo = pname;
22
22
+
rev = version;
23
23
+
sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0";
22
24
};
23
25
24
26
propagatedBuildInputs = [
25
27
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
26
28
];
27
29
28
28
-
checkInputs = [
29
29
-
pytest
30
30
-
];
31
31
-
32
32
-
checkPhase = ''
33
33
-
py.test
34
34
-
'';
30
30
+
checkInputs = [ pytest ];
31
31
+
checkPhase = "py.test";
35
32
36
36
-
# Tests not included in archive
37
37
-
doCheck = false;
38
38
-
}
33
33
+
meta = with lib; {
34
34
+
description = "Service identity verification for pyOpenSSL";
35
35
+
license = licenses.mit;
36
36
+
homepage = "https://service-identity.readthedocs.io";
37
37
+
};
38
38
+
}