2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pip, pytest, click, six
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools_scm, git, glibcLocales, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "6.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "3b0c7b95e8d3dfb011bb42cb38f356fcf5d0630480462b59c4d0a112b8d90281";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
checkInputs = [ pytest git glibcLocales mock ];
|
|
|
|
propagatedBuildInputs = [ pip click six setuptools_scm ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) [
|
2020-04-24 23:36:52 +00:00
|
|
|
# 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}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Keeps your pinned dependencies fresh";
|
|
|
|
homepage = "https://github.com/jazzband/pip-tools/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|