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 version = pycryptodome.version;
8 pname = "pycrypto";
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 = http://www.pycrypto.org/;
25 description = "Python Cryptography Toolkit";
26 platforms = pycryptodome.meta.platforms;
27 };
28}