git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #171365 from fabaff/cert-chain-resolver-fix

python310Packages.cert-chain-resolver: add missing input

commit697c15ada1a945f13fbfb646d855437334f4ff3f authorFabian Affolter <fabian@affolter-engineering.ch> dateTue 3 May 2022, 19:36 (5 years ago) parentcd78b18fb5fd13
1 file changed+22−7
pkgs/development/python-modules/cert-chain-resolver/default.nix+22−7
pkgs/development/python-modules/cert-chain-resolver/default.nix+22−7
@@ -1,35 +1,50 @@
11{ lib
2−, fetchFromGitHub
32, buildPythonPackage
3+, cryptography
4+, fetchFromGitHub
45, pytestCheckHook
56, pytest-mock
6−, cryptography
7+, pythonOlder
8+, six
79}:
810
911buildPythonPackage rec {
1012 pname = "cert-chain-resolver";
1113 version = "1.0.1";
14+ format = "setuptools";
15+
16+ disabled = pythonOlder "3.7";
1217
1318 src = fetchFromGitHub {
1419 owner = "rkoopmans";
1520 repo = "python-certificate-chain-resolver";
1621 rev = version;
17− sha256 = "1kmig4ksbx1wvgcjn4r9jjg2pn1ag5rq871bjwxkp9kslb3x3d1l";
22+ hash = "sha256-NLTRx6J6pjs7lyschHN5KtgrnpQpEyvZ2zz0pSd5sc4=";
1823 };
1924
20− propagatedBuildInputs = [ cryptography ];
25+ propagatedBuildInputs = [
26+ cryptography
27+ ];
2128
22− checkInputs = [ pytestCheckHook pytest-mock ];
29+ checkInputs = [
30+ pytestCheckHook
31+ pytest-mock
32+ six
33+ ];
2334
24− # online tests
2535 disabledTests = [
36+ # Tests require network access
2637 "test_cert_returns_completed_chain"
2738 "test_display_flag_is_properly_formatted"
2839 ];
2940
41+ pythonImportsCheck = [
42+ "cert_chain_resolver"
43+ ];
44+
3045 meta = with lib; {
31− homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
3246 description = "Resolve / obtain the certificate intermediates of a x509 certificate";
47+ homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
3348 license = licenses.mit;
3449 maintainers = with maintainers; [ veehaitch ];
3550 };