Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 35 lines 766 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pyasn1 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "pyasn1-modules"; 10 version = "0.2.5"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "ef721f68f7951fab9b0404d42590f479e30d9005daccb1699b0a51bb4177db96"; 15 }; 16 17 propagatedBuildInputs = [ pyasn1 ]; 18 19 checkInputs = [ 20 pytest 21 ]; 22 23 # running tests through setup.py fails only for python2 for some reason: 24 # AttributeError: 'module' object has no attribute 'suitetests' 25 checkPhase = '' 26 py.test 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "A collection of ASN.1-based protocols modules"; 31 homepage = https://pypi.python.org/pypi/pyasn1-modules; 32 license = licenses.bsd3; 33 platforms = platforms.unix; # same as pyasn1 34 }; 35}