2017-06-06 09:26:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2019-10-16 15:22:00 +00:00
|
|
|
, pytestCheckHook
|
2018-12-20 14:42:41 +00:00
|
|
|
, pytest-flake8
|
2017-06-06 09:26:49 +00:00
|
|
|
, glibcLocales
|
2018-02-18 18:32:00 +00:00
|
|
|
, packaging
|
2019-10-16 15:22:00 +00:00
|
|
|
, isPy38
|
2018-11-04 10:35:08 +00:00
|
|
|
, importlib-metadata
|
2019-08-17 15:24:18 +00:00
|
|
|
, fetchpatch
|
2017-06-06 09:26:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "path.py";
|
2019-08-17 15:24:18 +00:00
|
|
|
version = "12.0.1";
|
2017-06-06 09:26:49 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-17 15:24:18 +00:00
|
|
|
sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f";
|
2017-06-06 09:26:49 +00:00
|
|
|
};
|
|
|
|
|
2019-10-16 15:22:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-flake8 glibcLocales packaging ];
|
2021-06-03 10:09:11 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2018-11-04 10:35:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
2021-03-24 16:45:56 +00:00
|
|
|
];
|
2017-06-06 09:26:49 +00:00
|
|
|
|
2018-11-04 10:35:08 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2017-06-06 09:26:49 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A module wrapper for os.path";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jaraco/path.py";
|
2017-06-06 09:26:49 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
|
2019-10-16 15:22:00 +00:00
|
|
|
# ignore performance test which may fail when the system is under load
|
|
|
|
# test_version fails with 3.8 https://github.com/jaraco/path.py/issues/172
|
|
|
|
disabledTests = [ "TestPerformance" ] ++ lib.optionals isPy38 [ "test_version"];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
2019-08-17 15:24:18 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/jaraco/path.py/commit/02eb16f0eb2cdc0015972ce963357aaa1cd0b84b.patch";
|
2019-08-17 15:24:18 +00:00
|
|
|
sha256 = "0bqa8vjwil7jn35a6984adcm24pvv3pjkhszv10qv6yr442d1mk9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|