diff options
Diffstat (limited to 'pkgs/development/python-modules/asn1crypto/default.nix')
-rw-r--r-- | pkgs/development/python-modules/asn1crypto/default.nix | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/asn1crypto/default.nix b/pkgs/development/python-modules/asn1crypto/default.nix index a10ad81c1823..4fb33a866a60 100644 --- a/pkgs/development/python-modules/asn1crypto/default.nix +++ b/pkgs/development/python-modules/asn1crypto/default.nix @@ -1,28 +1,33 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, -# build system -, setuptools + # build system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: # Switch version based on python version, as the situation isn't easy: # https://github.com/wbond/asn1crypto/issues/269 # https://github.com/MatthiasValvekens/certomancer/issues/12 let - provenance = if lib.versionOlder python.version "3.12" then rec { - version = "1.5.1"; - rev = version; - hash = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M="; - } else { - version = "1.5.1-unstable-2023-11-03"; - rev = "b763a757bb2bef2ab63620611ddd8006d5e9e4a2"; - hash = "sha256-11WajEDtisiJsKQjZMSd5sDog3DuuBzf1PcgSY+uuXY="; - }; + provenance = + if lib.versionOlder python.version "3.12" then + rec { + version = "1.5.1"; + rev = version; + hash = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M="; + } + else + { + version = "1.5.1-unstable-2023-11-03"; + rev = "b763a757bb2bef2ab63620611ddd8006d5e9e4a2"; + hash = "sha256-11WajEDtisiJsKQjZMSd5sDog3DuuBzf1PcgSY+uuXY="; + }; in buildPythonPackage rec { @@ -37,13 +42,9 @@ buildPythonPackage rec { inherit (provenance) rev hash; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP"; |