1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/python-modules/pycrypto/default.nix

30 lines
855 B
Nix
Raw Normal View History

{ stdenv, fetchurl, buildPythonPackage, pycryptodome }:
# This is a dummy package providing the drop-in replacement pycryptodome.
# https://github.com/NixOS/nixpkgs/issues/21671
buildPythonPackage rec {
version = pycryptodome.version;
pname = "pycrypto";
name = "${pname}-${version}";
# Cannot build wheel otherwise (zip 1980 issue)
SOURCE_DATE_EPOCH=315532800;
# 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
'';
propagatedBuildInputs = [ pycryptodome ];
2014-05-05 02:43:23 +01:00
# Our dummy has no tests
doCheck = false;
2014-05-14 02:31:37 +01:00
meta = {
homepage = http://www.pycrypto.org/;
description = "Python Cryptography Toolkit";
platforms = pycryptodome.meta.platforms;
};
}