2017-06-06 10:26:49 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "path.py";
|
2017-12-30 11:25:15 +00:00
|
|
|
version = "10.5";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-06-06 10:26:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:25:15 +00:00
|
|
|
sha256 = "63a7af08676668fd51750f111affbd38c1a13c61aba15c6665b16681771c79a8";
|
2017-06-06 10:26:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner ];
|
|
|
|
buildInputs = [setuptools_scm glibcLocales ];
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
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 = ''
|
|
|
|
py.test test_path.py
|
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|