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