2017-06-06 11:26:49 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
2018-02-18 19:32:00 +01:00
|
|
|
, packaging
|
2017-06-06 11:26:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "path.py";
|
2018-04-04 20:12:31 +02:00
|
|
|
version = "11.0.1";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-06-06 11:26:49 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:12:31 +02:00
|
|
|
sha256 = "e7eb9d0ca4110d9b4d7c9baa0696d8c94f837d622409cefc5ec9e7c3d02ea11f";
|
2017-06-06 11:26:49 +02:00
|
|
|
};
|
|
|
|
|
2018-02-18 19:32:00 +01:00
|
|
|
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
|
|
|
|
buildInputs = [ setuptools_scm ];
|
2017-06-06 11:26:49 +02:00
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A module wrapper for os.path";
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://github.com/jaraco/path.py;
|
2017-06-06 11:26:49 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-04-04 20:12:31 +02:00
|
|
|
# Ignore pytest configuration
|
|
|
|
rm pytest.ini
|
2017-06-06 11:26:49 +02:00
|
|
|
py.test test_path.py
|
|
|
|
'';
|
2017-11-09 12:26:09 +01:00
|
|
|
}
|