3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pip-tools/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2017-10-25 19:04:35 +01:00
{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first
, 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";
version = "3.1.0";
name = pname + "-" + version;
2017-03-12 18:10:19 +00:00
2017-06-25 17:55:07 +01:00
src = fetchurl {
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
sha256 = "0w1qdkr5n612nb3b890mbdyjb3cxn2mna1c7ysr4d0x4nh1wmkmi";
2017-03-12 18:10:19 +00:00
};
LC_ALL = "en_US.UTF-8";
checkInputs = [ pytest git glibcLocales mock ];
2017-06-25 17:55:07 +01: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_editable_package_vcs"
"test_generate_hashes_all_platforms"
"test_generate_hashes_without_interfering_with_each_other"
"test_realistic_complex_sub_dependencies"
2017-12-30 11:25:26 +00:00
"test_generate_hashes_with_editable"
2018-04-17 16:26:17 +01:00
"test_filter_pip_markes"
"test_get_hashes_local_repository_cache_miss"
# 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 11:10:24 +01: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 ];
};
}