mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 11:56:33 +01:00
https://github.com/Rogdham/pyzstd/blob/0.19.1/CHANGELOG.md This commit was automatically generated using update-python-libraries.
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{
|
|
backports-zstd,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
hatchling,
|
|
hatch-vcs,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
typing-extensions,
|
|
zstd-c,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyzstd";
|
|
version = "0.19.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Rogdham";
|
|
repo = "pyzstd";
|
|
tag = version;
|
|
hash = "sha256-1oUqnZCBJYu8haFIQ+T2KaSQaa1xnZyJHLzOQg4Fdw8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# pyzst needs a copy of upstream zstd's license
|
|
ln -s ${zstd-c.src}/LICENSE zstd
|
|
'';
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
backports-zstd
|
|
]
|
|
++ lib.optionals (pythonOlder "3.13") [
|
|
typing-extensions
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"typing-extensions"
|
|
];
|
|
|
|
buildInputs = [
|
|
zstd-c
|
|
];
|
|
|
|
pypaBuildFlags = [
|
|
"--config-setting=--global-option=--dynamic-link-zstd"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyzstd"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python bindings to Zstandard (zstd) compression library";
|
|
homepage = "https://pyzstd.readthedocs.io";
|
|
changelog = "https://github.com/Rogdham/pyzstd/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
MattSturgeon
|
|
pitkling
|
|
PopeRigby
|
|
];
|
|
};
|
|
}
|