summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2018-07-19 17:36:05 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-07-22 16:52:33 +0200
commit40887a6dc63568746068344550193a342219d73f (patch)
tree6370c5741481a15b7f4acb812729e0fde31772b3 /pkgs/development/python-modules
parentfb7b8948f4c2551cdfbac23cbe92a6f1ba5d5b36 (diff)
pipenv: 2018.5.18 -> 2018.7.1
Signed-off-by: Domen Kožar <domen@dev.si>
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/arpeggio/default.nix24
-rw-r--r--pkgs/development/python-modules/hypothesis/default.nix11
-rw-r--r--pkgs/development/python-modules/invoke/default.nix22
-rw-r--r--pkgs/development/python-modules/parver/default.nix28
4 files changed, 80 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/arpeggio/default.nix b/pkgs/development/python-modules/arpeggio/default.nix
new file mode 100644
index 000000000000..b793ff29ddfa
--- /dev/null
+++ b/pkgs/development/python-modules/arpeggio/default.nix
@@ -0,0 +1,24 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, glibcLocales
+}:
+
+buildPythonPackage rec {
+ pname = "Arpeggio";
+ version = "1.8.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0rvgwc2nxqf22fjnggswqw2i3sn1f2hhq043vhjr3af7ldfai3l2";
+ };
+
+ # Shall not be needed for next release
+ LC_ALL = "en_US.UTF-8";
+ buildInputs = [ glibcLocales ];
+
+ meta = {
+ description = "Packrat parser interpreter";
+ license = lib.licenses.mit;
+ };
+}
diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix
index 6701c5a5b7e9..5694ea92405c 100644
--- a/pkgs/development/python-modules/hypothesis/default.nix
+++ b/pkgs/development/python-modules/hypothesis/default.nix
@@ -9,23 +9,24 @@ buildPythonPackage rec {
# pytz fake_factory django numpy pytest
# If you need these, you can just add them to your environment.
- version = "3.45.2";
+ version = "3.66.2";
pname = "hypothesis";
- # Upstream prefers github tarballs
+ # Use github tarballs that includes tests
src = fetchFromGitHub {
owner = "HypothesisWorks";
repo = "hypothesis-python";
- rev = version;
- sha256 = "063sn5m1966gvm3wrlxczdq4vw0r94h3nd9xpr94qxahpg2r4bpb";
+ rev = "hypothesis-python-${version}";
+ sha256 = "17ywbwa76z7f0pgash0003fvm25fsj7hxdrdiprdbv99y3i8bm88";
};
+ postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
+
propagatedBuildInputs = [ attrs coverage ] ++ lib.optional (!isPy3k) [ enum34 ];
checkInputs = [ pytest pytest_xdist flaky mock ];
inherit doCheck;
- # https://github.com/DRMacIver/hypothesis/issues/300
checkPhase = ''
rm tox.ini # This file changes how py.test runs and breaks it
py.test tests/cover
diff --git a/pkgs/development/python-modules/invoke/default.nix b/pkgs/development/python-modules/invoke/default.nix
new file mode 100644
index 000000000000..20d2973ca4f1
--- /dev/null
+++ b/pkgs/development/python-modules/invoke/default.nix
@@ -0,0 +1,22 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+ pname = "invoke";
+ version = "1.1.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0aiy1xvk1f91246zxd1zqrm679vdvd10h843a2na41cqr3cflpi6";
+ };
+
+ # errors with vendored libs
+ doCheck = false;
+
+ meta = {
+ description = "Pythonic task execution";
+ license = lib.licenses.bsd2;
+ };
+}
diff --git a/pkgs/development/python-modules/parver/default.nix b/pkgs/development/python-modules/parver/default.nix
new file mode 100644
index 000000000000..7918c5bf6fa5
--- /dev/null
+++ b/pkgs/development/python-modules/parver/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, six
+, attrs
+, pytest
+, hypothesis
+, pretend
+, arpeggio
+}:
+
+buildPythonPackage rec {
+ pname = "parver";
+ version = "0.1.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "05dsjmk3ckd175ln8smxr1f6l6qsrjyd8s5vfqc5x7fii3vgyjmc";
+ };
+
+ propagatedBuildInputs = [ six attrs arpeggio ];
+ checkInputs = [ pytest hypothesis pretend ];
+
+ meta = {
+ description = "parver allows parsing and manipulation of PEP 440 version numbers.";
+ license = lib.licenses.mit;
+ };
+}