about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pip-tools/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pip-tools/default.nix35
1 files changed, 22 insertions, 13 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix b/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
index 9ac877be8848..9d54eef4d706 100644
--- a/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
@@ -3,35 +3,44 @@
 , pythonOlder
 , buildPythonPackage
 , pip
-, pytest
+, pytestCheckHook
 , pytest-xdist
 , click
 , setuptools-scm
-, git
-, glibcLocales
-, mock
 , pep517
 }:
 
 buildPythonPackage rec {
   pname = "pip-tools";
-  version = "6.2.0";
+  version = "6.4.0";
 
   disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "9ed38c73da4993e531694ea151f77048b4dbf2ba7b94c4a569daa39568cc6564";
+    sha256 = "65553a15b1ba34be5e43889345062e38fb9b219ffa23b084ca0d4c4039b6f53b";
   };
 
-  LC_ALL = "en_US.UTF-8";
-  checkInputs = [ pytest git glibcLocales mock pytest-xdist ];
-  propagatedBuildInputs = [ pip click setuptools-scm pep517 ];
+  checkInputs = [
+    pytestCheckHook
+    pytest-xdist
+  ];
 
-  checkPhase = ''
-    export HOME=$(mktemp -d) VIRTUAL_ENV=1
-    py.test -m "not network"
-  '';
+  nativeBuildInputs = [
+    setuptools-scm
+  ];
+
+  propagatedBuildInputs = [
+    click
+    pep517
+    pip
+  ];
+
+  disabledTests = [
+    # these want internet access
+    "network"
+    "test_direct_reference_with_extras"
+  ];
 
   meta = with lib; {
     description = "Keeps your pinned dependencies fresh";