at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 more-itertools, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "path"; 14 version = "17.1.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-Lfy/7ItNlg80acUqzxMxE8KovxKse5jWKfqRr4ckjUI="; 22 }; 23 24 postPatch = '' 25 sed -i "/coherent\.licensed/d" pyproject.toml 26 ''; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 nativeCheckInputs = [ 34 more-itertools 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # creates a file, checks when it was last accessed/modified 40 # AssertionError: assert 1650036414.0 == 1650036414.960688 41 "test_utime" 42 ]; 43 44 pythonImportsCheck = [ "path" ]; 45 46 meta = with lib; { 47 description = "Object-oriented file system path manipulation"; 48 homepage = "https://github.com/jaraco/path"; 49 changelog = "https://github.com/jaraco/path/blob/v${version}/NEWS.rst"; 50 license = licenses.mit; 51 maintainers = [ ]; 52 }; 53}