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