nixpkgs/pkgs/development/python-modules/pip-tools/default.nix

56 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchPypi, buildPythonPackage, pip, pytest, click, six, first
, setuptools_scm, git, glibcLocales, mock }:
2017-10-25 18:04:35 +00:00
2017-03-12 18:10:19 +00:00
buildPythonPackage rec {
pname = "pip-tools";
2019-10-24 06:47:42 +00:00
version = "4.2.0";
2017-03-12 18:10:19 +00:00
src = fetchPypi {
inherit pname version;
2019-10-24 06:47:42 +00:00
sha256 = "5427ea4dcc175649723985fbcace9b2d8f46f9adbcc63bc2d7b247d9bcc74917";
2017-03-12 18:10:19 +00:00
};
LC_ALL = "en_US.UTF-8";
checkInputs = [ pytest git glibcLocales mock ];
2017-06-25 16:55:07 +00:00
propagatedBuildInputs = [ pip click six first setuptools_scm ];
2017-03-12 18:10:19 +00:00
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"
2017-12-30 11:25:26 +00:00
"test_generate_hashes_with_editable"
"test_generate_hashes_with_url"
"test_generate_hashes_without_interfering_with_each_other"
2018-04-17 15:26:17 +00:00
"test_get_hashes_local_repository_cache_miss"
"test_realistic_complex_sub_dependencies"
"test_stdin"
"test_upgrade_packages_option"
"test_url_package"
# Expect specific version of "six":
"test_editable_package"
"test_input_file_without_extension"
2017-12-30 11:25:26 +00:00
"test_locally_available_editable_package_is_not_archived_in_cache_dir"
2018-06-22 10:10:24 +00:00
"test_no_candidates"
"test_no_candidates_pre"
];
2017-03-12 18:10:19 +00:00
checkPhase = ''
export HOME=$(mktemp -d) VIRTUAL_ENV=1
py.test -k "${disabledTests}"
2017-03-12 18:10:19 +00:00
'';
meta = with stdenv.lib; {
description = "Keeps your pinned dependencies fresh";
homepage = https://github.com/jazzband/pip-tools/;
license = licenses.bsd3;
maintainers = with maintainers; [ zimbatm ];
broken = true;
2017-03-12 18:10:19 +00:00
};
}