nixpkgs/pkgs/development/python-modules/pycrypto/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
832 B
Nix
Raw Normal View History

{ buildPythonPackage, pycryptodome }:
# This is a dummy package providing the drop-in replacement pycryptodome.
# https://github.com/NixOS/nixpkgs/issues/21671
buildPythonPackage rec {
pname = "pycrypto";
2022-03-29 17:07:05 +00:00
version = pycryptodome.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 01:43:23 +00:00
# Our dummy has no tests
doCheck = false;
2014-05-14 01:31:37 +00:00
meta = {
2022-03-29 17:07:05 +00:00
homepage = "https://www.pycrypto.org/";
description = "Drop-in replacement for pycrypto using pycryptodome";
platforms = pycryptodome.meta.platforms;
};
}