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.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix b/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
new file mode 100644
index 000000000000..3c3183da2737
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first
+, setuptools_scm, git, glibcLocales, mock }:
+
+buildPythonPackage rec {
+  pname = "pip-tools";
+  version = "3.3.2";
+  name = pname + "-" + version;
+
+  src = fetchurl {
+    url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
+    sha256 = "100496b15463155f4da3df04c2ca0068677e1ee74d346ebade2d85eef4de8cda";
+  };
+
+  LC_ALL = "en_US.UTF-8";
+  checkInputs = [ pytest git glibcLocales mock ];
+  propagatedBuildInputs = [ pip click six first setuptools_scm ];
+
+  disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) [
+    # Depend on network tests:
+    "test_editable_package_vcs"
+    "test_generate_hashes_all_platforms"
+    "test_generate_hashes_without_interfering_with_each_other"
+    "test_realistic_complex_sub_dependencies"
+    "test_generate_hashes_with_editable"
+    "test_filter_pip_markes"
+    "test_get_hashes_local_repository_cache_miss"
+    # Expect specific version of "six":
+    "test_editable_package"
+    "test_input_file_without_extension"
+    "test_locally_available_editable_package_is_not_archived_in_cache_dir"
+    "test_no_candidates"
+    "test_no_candidates_pre"
+  ];
+
+  checkPhase = ''
+    export HOME=$(mktemp -d) VIRTUAL_ENV=1
+    py.test -k "${disabledTests}"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Keeps your pinned dependencies fresh";
+    homepage = https://github.com/jazzband/pip-tools/;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ zimbatm ];
+  };
+}