mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
formencode: update for dnspython
This commit is contained in:
parent
cecbb9fdf6
commit
cb77b9c2e9
2 changed files with 33 additions and 24 deletions
32
pkgs/development/python-modules/FormEncode/default.nix
Normal file
32
pkgs/development/python-modules/FormEncode/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ stdenv, buildPythonPackage, fetchPypi, dns, pycountry, nose }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "FormEncode";
|
||||||
|
version = "1.3.0";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
extension = "zip";
|
||||||
|
sha256 = "0y5gywq0l79l85ylr55p4xy0h921zgmfw6zmrvlh83aa4j074xg6";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ dns pycountry nose ];
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
# dnspython3 has been superseded, see its PyPI page
|
||||||
|
substituteInPlace setup.py --replace dnspython3 dnspython
|
||||||
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# two tests require dns resolving
|
||||||
|
sed -i 's/test_cyrillic_email/noop/' formencode/tests/test_email.py
|
||||||
|
sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "FormEncode validates and converts nested structures";
|
||||||
|
homepage = "http://formencode.org";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
|
@ -15957,30 +15957,7 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
FormEncode = buildPythonPackage rec {
|
FormEncode = callPackage ../development/python-modules/FormEncode { };
|
||||||
name = "FormEncode-${version}";
|
|
||||||
version = "1.3.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/F/FormEncode/${name}.zip";
|
|
||||||
sha256 = "0y5gywq0l79l85ylr55p4xy0h921zgmfw6zmrvlh83aa4j074xg6";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [
|
|
||||||
dns pycountry nose
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
# two tests require dns resolving
|
|
||||||
sed -i 's/test_cyrillic_email/noop/' formencode/tests/test_email.py
|
|
||||||
sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "FormEncode validates and converts nested structures";
|
|
||||||
homepage = "http://formencode.org";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pycountry = buildPythonPackage rec {
|
pycountry = buildPythonPackage rec {
|
||||||
name = "pycountry-${version}";
|
name = "pycountry-${version}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue