aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix
index f79e76b52c41..d91bef07d2ae 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/FormEncode/default.nix
@@ -1,24 +1,28 @@
-{ stdenv, buildPythonPackage, fetchPypi, dnspython, pycountry, nose }:
+{ stdenv, buildPythonPackage, fetchPypi, dnspython, pycountry, nose, setuptools_scm, six, isPy27 }:
buildPythonPackage rec {
pname = "FormEncode";
- version = "1.3.1";
+ version = "2.0.0";
+
+ disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "1xm77h2mds2prlaz0z4nzkx13g61rx5c2v3vpgjq9d5ij8bzb8md";
+ sha256 = "049pm276140h30xgzwylhpii24xcln1qfdlfmbj69sqpfhlr5szj";
};
- buildInputs = [ dnspython pycountry nose ];
-
- patchPhase = ''
- # dnspython3 has been superseded, see its PyPI page
- substituteInPlace setup.py --replace dnspython3 dnspython
+ postPatch = ''
+ sed -i 's/setuptools_scm_git_archive//' setup.py
+ sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
'';
+ nativeBuildInputs = [ setuptools_scm ];
+ propagatedBuildInputs = [ six ];
+
+ checkInputs = [ dnspython pycountry nose ];
+
preCheck = ''
- # two tests require dns resolving
- sed -i 's/test_cyrillic_email/noop/' formencode/tests/test_email.py
+ # requires dns resolving
sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py
'';