at 23.11-beta 980 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.7.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "andrivet"; 18 repo = "python-asn1"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-pXLG2Mkrv6EeJn6Dk+SefzNtrPdQ6of95LbVTKjTADQ="; 21 }; 22 23 propagatedBuildInputs = [ 24 future 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 postPatch = '' 32 substituteInPlace setup.py \ 33 --replace "enum-compat" "" 34 ''; 35 36 pytestFlagsArray = [ 37 "tests/test_asn1.py" 38 ]; 39 40 pythonImportsCheck = [ 41 "asn1" 42 ]; 43 44 meta = with lib; { 45 description = "Python ASN.1 encoder and decoder"; 46 homepage = "https://github.com/andrivet/python-asn1"; 47 changelog = "https://github.com/andrivet/python-asn1/blob/v${version}/CHANGELOG.rst"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}