1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pytest 6, pytest-flake8 7, glibcLocales 8, packaging 9, isPy27 10, backports_os 11, importlib-metadata 12}: 13 14buildPythonPackage rec { 15 pname = "path.py"; 16 version = "11.5.2"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "de7cd643affbc23e56533a6e8d551ecdee4983501a08c24e4e71565202d8cdaa"; 21 }; 22 23 checkInputs = [ pytest pytest-flake8 glibcLocales packaging ]; 24 buildInputs = [ setuptools-scm ]; 25 propagatedBuildInputs = [ 26 importlib-metadata 27 ] ++ lib.optional isPy27 backports_os 28 ; 29 30 LC_ALL = "en_US.UTF-8"; 31 32 meta = { 33 description = "A module wrapper for os.path"; 34 homepage = "https://github.com/jaraco/path.py"; 35 license = lib.licenses.mit; 36 }; 37 38 checkPhase = '' 39 # ignore performance test which may fail when the system is under load 40 py.test -v -k 'not TestPerformance' 41 ''; 42}