2017-01-05 10:59:25 +01:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pycryptodome }:
|
2006-12-13 21:30:09 +01:00
|
|
|
|
2017-01-05 10:59:25 +01:00
|
|
|
# This is a dummy package providing the drop-in replacement pycryptodome.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/21671
|
2010-07-28 15:07:48 +02:00
|
|
|
|
2017-01-05 10:59:25 +01:00
|
|
|
let
|
|
|
|
version = pycryptodome.version;
|
|
|
|
pname = "pycrypto";
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
2010-07-28 15:07:48 +02:00
|
|
|
|
2017-01-05 10:59:25 +01:00
|
|
|
# Cannot build wheel otherwise (zip 1980 issue)
|
|
|
|
SOURCE_DATE_EPOCH=315532800;
|
2017-01-05 06:40:43 +01:00
|
|
|
|
2017-01-05 10:59:25 +01: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 21:47:43 +01:00
|
|
|
'';
|
|
|
|
|
2017-01-05 10:59:25 +01:00
|
|
|
propagatedBuildInputs = [ pycryptodome ];
|
2014-05-05 03:43:23 +02:00
|
|
|
|
2017-01-05 10:59:25 +01:00
|
|
|
# Our dummy has no tests
|
|
|
|
doCheck = false;
|
2014-05-14 03:31:37 +02:00
|
|
|
|
2010-05-20 12:41:10 +02:00
|
|
|
meta = {
|
2010-07-28 15:07:48 +02:00
|
|
|
homepage = "http://www.pycrypto.org/";
|
2010-05-20 12:41:10 +02:00
|
|
|
description = "Python Cryptography Toolkit";
|
2017-01-05 10:59:25 +01:00
|
|
|
platforms = pycryptodome.meta.platforms;
|
2010-05-20 12:41:10 +02:00
|
|
|
};
|
2006-12-13 21:30:09 +01:00
|
|
|
}
|