at 22.05-pre 839 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, future 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "asn1"; 11 version = "2.4.2"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "andrivet"; 17 repo = "python-asn1"; 18 rev = "v${version}"; 19 sha256 = "sha256-fx/kWOnh5Gk1DjeX0xiCJYnd5teD18RvKyOnawcfWWA="; 20 }; 21 22 propagatedBuildInputs = [ 23 future 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 postPatch = '' 31 substituteInPlace setup.py \ 32 --replace "enum-compat" "" 33 ''; 34 35 pytestFlagsArray = [ "tests/test_asn1.py" ]; 36 37 pythonImportsCheck = [ "asn1" ]; 38 39 meta = with lib; { 40 description = "Python ASN.1 encoder and decoder"; 41 homepage = "https://github.com/andrivet/python-asn1"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}