Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 isPy3k, 6 future, 7}: 8 9buildPythonPackage rec { 10 pname = "ecpy"; 11 version = "1.2.5"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 pname = "ECPy"; 16 inherit version; 17 sha256 = "9635cffb9b6ecf7fd7f72aea1665829ac74a1d272006d0057d45a621aae20228"; 18 }; 19 20 prePatch = '' 21 sed -i "s|reqs.append('future')|pass|" setup.py 22 ''; 23 24 propagatedBuildInputs = lib.optional (!isPy3k) future; 25 26 # No tests implemented 27 doCheck = false; 28 29 pythonImportsCheck = [ "ecpy" ]; 30 31 meta = with lib; { 32 description = "Pure Pyhton Elliptic Curve Library"; 33 homepage = "https://github.com/ubinity/ECPy"; 34 license = licenses.asl20; 35 }; 36}