Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 862 B view raw
1{ stdenv, fetchurl, buildPythonPackage, pycryptodome }: 2 3# This is a dummy package providing the drop-in replacement pycryptodome. 4# https://github.com/NixOS/nixpkgs/issues/21671 5 6let 7 version = pycryptodome.version; 8 pname = "pycrypto"; 9in buildPythonPackage rec { 10 name = "${pname}-${version}"; 11 12 # Cannot build wheel otherwise (zip 1980 issue) 13 SOURCE_DATE_EPOCH=315532800; 14 15 # We need to have a dist-info folder, so let's create one with setuptools 16 unpackPhase = '' 17 echo "from setuptools import setup; setup(name='${pname}', version='${version}', install_requires=['pycryptodome'])" > setup.py 18 ''; 19 20 propagatedBuildInputs = [ pycryptodome ]; 21 22 # Our dummy has no tests 23 doCheck = false; 24 25 meta = { 26 homepage = http://www.pycrypto.org/; 27 description = "Python Cryptography Toolkit"; 28 platforms = pycryptodome.meta.platforms; 29 }; 30}