2021-01-24 00:29:22 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pip, pytest, click, six
|
2017-10-31 21:23:58 +00:00
|
|
|
, setuptools_scm, git, glibcLocales, mock }:
|
2017-10-25 19:04:35 +01:00
|
|
|
|
2017-03-12 18:10:19 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2020-11-30 19:41:17 +00:00
|
|
|
version = "5.4.0";
|
2017-03-12 18:10:19 +00:00
|
|
|
|
2019-07-01 14:15:33 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:36 +00:00
|
|
|
sha256 = "a4d3990df2d65961af8b41dacc242e600fdc8a65a2e155ed3d2fc18a5c209f20";
|
2017-03-12 18:10:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
2017-10-31 21:23:58 +00:00
|
|
|
checkInputs = [ pytest git glibcLocales mock ];
|
2019-11-29 03:46:56 +00:00
|
|
|
propagatedBuildInputs = [ pip click six setuptools_scm ];
|
2017-03-12 18:10:19 +00:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) [
|
2017-11-13 03:33:59 +00:00
|
|
|
# Depend on network tests:
|
2019-07-01 14:15:33 +01:00
|
|
|
"test_allow_unsafe_option" #paramaterized, but all fail
|
|
|
|
"test_annotate_option" #paramaterized, but all fail
|
2017-11-13 03:33:59 +00:00
|
|
|
"test_editable_package_vcs"
|
2019-07-01 14:15:33 +01:00
|
|
|
"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"
|
2017-11-13 03:33:59 +00:00
|
|
|
"test_generate_hashes_all_platforms"
|
2019-07-01 14:15:33 +01:00
|
|
|
"test_generate_hashes_verbose"
|
2017-12-30 11:25:26 +00:00
|
|
|
"test_generate_hashes_with_editable"
|
2019-07-01 14:15:33 +01:00
|
|
|
"test_generate_hashes_with_url"
|
|
|
|
"test_generate_hashes_without_interfering_with_each_other"
|
2020-03-24 09:57:25 +00:00
|
|
|
"test_get_file_hash_without_interfering_with_each_other"
|
2018-04-17 16:26:17 +01:00
|
|
|
"test_get_hashes_local_repository_cache_miss"
|
2019-07-01 14:15:33 +01:00
|
|
|
"test_realistic_complex_sub_dependencies"
|
|
|
|
"test_stdin"
|
|
|
|
"test_upgrade_packages_option"
|
|
|
|
"test_url_package"
|
2017-11-13 03:33:59 +00:00
|
|
|
"test_editable_package"
|
2017-12-30 11:25:26 +00:00
|
|
|
"test_locally_available_editable_package_is_not_archived_in_cache_dir"
|
2017-11-13 03:33:59 +00:00
|
|
|
];
|
|
|
|
|
2017-03-12 18:10:19 +00:00
|
|
|
checkPhase = ''
|
2017-10-31 21:23:58 +00:00
|
|
|
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
2017-11-13 03:33:59 +00:00
|
|
|
py.test -k "${disabledTests}"
|
2017-03-12 18:10:19 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-12 18:10:19 +00:00
|
|
|
description = "Keeps your pinned dependencies fresh";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jazzband/pip-tools/";
|
2017-03-12 18:10:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|