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
|
2017-06-06 10:26:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "path.py";
|
2018-11-04 10:35:08 +00:00
|
|
|
version = "11.5.0";
|
2017-06-06 10:26:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:08 +00:00
|
|
|
sha256 = "b6687a532a735a2d79a13e92bdb31cb0971abe936ea0fa78bcb47faf4372b3cb";
|
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";
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://github.com/jaraco/path.py;
|
2017-06-06 10:26:49 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-12-19 22:53:17 +00:00
|
|
|
# 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
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|