Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 24 lines 671 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "pathvalidate"; 5 version = "2.4.1"; 6 disabled = pythonOlder "3.5"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "sha256-PJvZTH7CPpz7IR/741audfl51sCZosdF7pSQ9STzJGg="; 11 }; 12 13 # Requires `pytest-md-report`, causing infinite recursion. 14 doCheck = false; 15 16 pythonImportsCheck = [ "pathvalidate" ]; 17 18 meta = with lib; { 19 description = "A Python library to sanitize/validate a string such as filenames/file-paths/etc"; 20 homepage = "https://github.com/thombashi/pathvalidate"; 21 license = licenses.mit; 22 maintainers = with maintainers; [ oxalica ]; 23 }; 24}