diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix new file mode 100644 index 000000000000..104619711a72 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchPypi, buildPythonPackage, pip, pytest, click, six +, setuptools_scm, git, glibcLocales, mock }: + +buildPythonPackage rec { + pname = "pip-tools"; + version = "5.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "5672c2b6ca0f1fd803f3b45568c2cf7fadf135b4971e7d665232b2075544c0ef"; + }; + + LC_ALL = "en_US.UTF-8"; + checkInputs = [ pytest git glibcLocales mock ]; + propagatedBuildInputs = [ pip click six setuptools_scm ]; + + disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) [ + # Depend on network tests: + "test_allow_unsafe_option" #paramaterized, but all fail + "test_annotate_option" #paramaterized, but all fail + "test_editable_package_vcs" + "test_editable_top_level_deps_preserved" # can't figure out how to select only one parameter to ignore + "test_filter_pip_markers" + "test_filter_pip_markes" + "test_generate_hashes_all_platforms" + "test_generate_hashes_verbose" + "test_generate_hashes_with_editable" + "test_generate_hashes_with_url" + "test_generate_hashes_without_interfering_with_each_other" + "test_get_file_hash_without_interfering_with_each_other" + "test_get_hashes_local_repository_cache_miss" + "test_realistic_complex_sub_dependencies" + "test_stdin" + "test_upgrade_packages_option" + "test_url_package" + "test_editable_package" + "test_locally_available_editable_package_is_not_archived_in_cache_dir" + ]; + + 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 ]; + }; +} |