mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f9ef45b183
There is a new pip-tools release. A commit [removing the test dependency
on six] is included in this release, so several tests that now pass are
being re-enabled in the check phase. The six-specific tests that still
don't pass require network access and remain disabled. Finally, drop the
dependency on first, which has been dropped by pip-tools. The full
changelog is available at f28d1a7d25/CHANGELOG.md (430-2019-11-25)
.
[removing the test dependency on six]: https://github.com/jazzband/pip-tools/pull/939
51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
{ stdenv, fetchPypi, buildPythonPackage, pip, pytest, click, six
|
|
, setuptools_scm, git, glibcLocales, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pip-tools";
|
|
version = "4.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0x36mp3a3f3wandfc0g8d53gg2jkc14nhisbryzspcl9f05sbvq6";
|
|
};
|
|
|
|
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_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 ];
|
|
};
|
|
}
|