2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cffi,
|
|
|
|
construct,
|
2024-10-23 06:41:50 +00:00
|
|
|
fetchPypi,
|
2024-06-05 15:53:02 +00:00
|
|
|
hypothesis,
|
2024-10-23 06:41:50 +00:00
|
|
|
pytest,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brotlipy";
|
|
|
|
version = "0.7.0";
|
2024-10-23 06:41:50 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-23 06:41:50 +00:00
|
|
|
hash = "sha256-Nt7wuFm+ryGRAVe0wz6zsG2M5FnJQhAvFpiMym6hZN8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedNativeBuildInputs = [ cffi ];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-06-05 15:53:02 +00:00
|
|
|
cffi
|
|
|
|
construct
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
2024-10-23 06:41:50 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Missing test files
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonImportsCheck = [ "brotli" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Python bindings for the reference Brotli encoder/decoder";
|
|
|
|
homepage = "https://github.com/python-hyper/brotlipy/";
|
|
|
|
license = lib.licenses.mit;
|
2024-10-23 06:41:50 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|