f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
31 lines
862 B
Nix
31 lines
862 B
Nix
{ stdenv, fetchurl, buildPythonPackage, pycryptodome }:
|
|
|
|
# This is a dummy package providing the drop-in replacement pycryptodome.
|
|
# https://github.com/NixOS/nixpkgs/issues/21671
|
|
|
|
let
|
|
version = pycryptodome.version;
|
|
pname = "pycrypto";
|
|
in buildPythonPackage rec {
|
|
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
|
|
'';
|
|
|
|
propagatedBuildInputs = [ pycryptodome ];
|
|
|
|
# Our dummy has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = http://www.pycrypto.org/;
|
|
description = "Python Cryptography Toolkit";
|
|
platforms = pycryptodome.meta.platforms;
|
|
};
|
|
}
|