2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-xz";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.5.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Module has no tests
|
2023-10-09 19:29:22 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "xz" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python library for seeking within compressed xz files";
|
|
|
|
homepage = "https://github.com/Rogdham/python-xz";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/Rogdham/python-xz/blob/v${version}/CHANGELOG.md";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|