2017-06-06 09:26:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "path.py";
|
2018-02-17 13:21:23 +00:00
|
|
|
version = "11.0";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-06-06 09:26:49 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:21:23 +00:00
|
|
|
sha256 = "16134e5b287aba4a4125a6722e7837cf2a149fccc5000c500ae6c71a5525488b";
|
2017-06-06 09:26:49 +00: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 09:26:49 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test_path.py
|
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|