Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools-scm, 7}: 8 9buildPythonPackage rec { 10 pname = "python-xz"; 11 version = "0.5.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q="; 19 }; 20 21 nativeBuildInputs = [ setuptools-scm ]; 22 23 # has no tests 24 doCheck = false; 25 26 pythonImportsCheck = [ "xz" ]; 27 28 meta = with lib; { 29 description = "Pure Python library for seeking within compressed xz files"; 30 homepage = "https://github.com/Rogdham/python-xz"; 31 license = licenses.mit; 32 maintainers = with lib.maintainers; [ mxmlnkn ]; 33 platforms = platforms.all; 34 }; 35}