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