1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools_scm
5, pytestrunner
6, pytest
7, glibcLocales
8, packaging
9}:
10
11buildPythonPackage rec {
12 pname = "path.py";
13 version = "11.0";
14 name = pname + "-" + version;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "16134e5b287aba4a4125a6722e7837cf2a149fccc5000c500ae6c71a5525488b";
19 };
20
21 checkInputs = [ pytest pytestrunner glibcLocales packaging ];
22 buildInputs = [ setuptools_scm ];
23
24 LC_ALL="en_US.UTF-8";
25
26 meta = {
27 description = "A module wrapper for os.path";
28 homepage = https://github.com/jaraco/path.py;
29 license = lib.licenses.mit;
30 };
31
32 checkPhase = ''
33 py.test test_path.py
34 '';
35}