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