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

52 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-06 10:26:49 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
2018-12-20 14:42:41 +00:00
, pytest-flake8
2017-06-06 10:26:49 +01:00
, glibcLocales
2018-02-18 18:32:00 +00:00
, packaging
2018-11-04 10:35:08 +00:00
, isPy27
, backports_os
, importlib-metadata
, fetchpatch
2017-06-06 10:26:49 +01:00
}:
buildPythonPackage rec {
pname = "path.py";
version = "12.0.1";
2017-06-06 10:26:49 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f";
2017-06-06 10:26:49 +01:00
};
2018-12-20 14:42:41 +00:00
checkInputs = [ pytest pytest-flake8 glibcLocales packaging ];
2018-02-18 18:32:00 +00:00
buildInputs = [ setuptools_scm ];
2018-11-04 10:35:08 +00:00
propagatedBuildInputs = [
importlib-metadata
] ++ lib.optional isPy27 backports_os
;
2017-06-06 10:26:49 +01:00
2018-11-04 10:35:08 +00:00
LC_ALL = "en_US.UTF-8";
2017-06-06 10:26:49 +01:00
meta = {
description = "A module wrapper for os.path";
homepage = https://github.com/jaraco/path.py;
2017-06-06 10:26:49 +01:00
license = lib.licenses.mit;
};
checkPhase = ''
# ignore performance test which may fail when the system is under load
2018-12-20 14:42:41 +00:00
py.test -v -k 'not TestPerformance'
2017-06-06 10:26:49 +01:00
'';
patches = [
(fetchpatch {
url = https://github.com/jaraco/path.py/commit/02eb16f0eb2cdc0015972ce963357aaa1cd0b84b.patch;
sha256 = "0bqa8vjwil7jn35a6984adcm24pvv3pjkhszv10qv6yr442d1mk9";
})
];
}