2018-07-21 01:44:44 +01:00
|
|
|
{ buildPythonPackage, pycryptodome }:
|
2006-12-13 20:30:09 +00:00
|
|
|
|
2017-01-05 09:59:25 +00:00
|
|
|
# This is a dummy package providing the drop-in replacement pycryptodome.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/21671
|
2010-07-28 14:07:48 +01:00
|
|
|
|
2017-11-09 11:26:09 +00:00
|
|
|
buildPythonPackage rec {
|
2017-01-05 09:59:25 +00:00
|
|
|
version = pycryptodome.version;
|
|
|
|
pname = "pycrypto";
|
2010-07-28 14:07:48 +01:00
|
|
|
|
2017-01-05 09:59:25 +00:00
|
|
|
# Cannot build wheel otherwise (zip 1980 issue)
|
|
|
|
SOURCE_DATE_EPOCH=315532800;
|
2017-01-05 05:40:43 +00:00
|
|
|
|
2017-01-05 09:59:25 +00:00
|
|
|
# We need to have a dist-info folder, so let's create one with setuptools
|
|
|
|
unpackPhase = ''
|
|
|
|
echo "from setuptools import setup; setup(name='${pname}', version='${version}', install_requires=['pycryptodome'])" > setup.py
|
2015-01-02 20:47:43 +00:00
|
|
|
'';
|
|
|
|
|
2017-01-05 09:59:25 +00:00
|
|
|
propagatedBuildInputs = [ pycryptodome ];
|
2014-05-05 02:43:23 +01:00
|
|
|
|
2017-01-05 09:59:25 +00:00
|
|
|
# Our dummy has no tests
|
|
|
|
doCheck = false;
|
2014-05-14 02:31:37 +01:00
|
|
|
|
2010-05-20 11:41:10 +01:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.pycrypto.org/;
|
2010-05-20 11:41:10 +01:00
|
|
|
description = "Python Cryptography Toolkit";
|
2017-01-05 09:59:25 +00:00
|
|
|
platforms = pycryptodome.meta.platforms;
|
2010-05-20 11:41:10 +01:00
|
|
|
};
|
2006-12-13 20:30:09 +00:00
|
|
|
}
|