at 22.05-pre 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pytestCheckHook 6, pytest-flake8 7, glibcLocales 8, packaging 9, isPy38 10, importlib-metadata 11, fetchpatch 12}: 13 14buildPythonPackage rec { 15 pname = "path.py"; 16 version = "12.0.1"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f"; 21 }; 22 23 checkInputs = [ pytestCheckHook pytest-flake8 glibcLocales packaging ]; 24 buildInputs = [ setuptools-scm ]; 25 propagatedBuildInputs = [ 26 importlib-metadata 27 ]; 28 29 LC_ALL = "en_US.UTF-8"; 30 31 meta = { 32 description = "A module wrapper for os.path"; 33 homepage = "https://github.com/jaraco/path.py"; 34 license = lib.licenses.mit; 35 }; 36 37 # ignore performance test which may fail when the system is under load 38 # test_version fails with 3.8 https://github.com/jaraco/path.py/issues/172 39 disabledTests = [ "TestPerformance" ] ++ lib.optionals isPy38 [ "test_version"]; 40 41 dontUseSetuptoolsCheck = true; 42 43 patches = [ 44 (fetchpatch { 45 url = "https://github.com/jaraco/path.py/commit/02eb16f0eb2cdc0015972ce963357aaa1cd0b84b.patch"; 46 sha256 = "0bqa8vjwil7jn35a6984adcm24pvv3pjkhszv10qv6yr442d1mk9"; 47 }) 48 ]; 49 50}