python312Packages.brotlipy: refactor

This commit is contained in:
Fabian Affolter
2024-10-18 21:18:37 +02:00
parent 3a9aba5506
commit fe9041ab9c
@@ -1,47 +1,51 @@
{
lib,
buildPythonPackage,
fetchPypi,
cffi,
enum34,
construct,
pytest,
fetchPypi,
hypothesis,
pytest,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "brotlipy";
version = "0.7.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
hash = "sha256-Nt7wuFm+ryGRAVe0wz6zsG2M5FnJQhAvFpiMym6hZN8=";
};
propagatedBuildInputs = [
cffi
enum34
construct
];
build-system = [ setuptools ];
propagatedNativeBuildInputs = [ cffi ];
nativeCheckInputs = [
pytest
hypothesis
dependencies = [
cffi
construct
];
checkPhase = ''
py.test
'';
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
# Missing test files
doCheck = false;
pythonImportsCheck = [ "brotli" ];
meta = {
description = "Python bindings for the reference Brotli encoder/decoder";
homepage = "https://github.com/python-hyper/brotlipy/";
license = lib.licenses.mit;
maintainers = [ ];
};
}