mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
python3Packages.brotlicffi: init at 1.0.9.2
This commit is contained in:
parent
2d18ed2ec5
commit
7ac716fa2b
44
pkgs/development/python-modules/brotlicffi/default.nix
Normal file
44
pkgs/development/python-modules/brotlicffi/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, cffi
|
||||
, brotli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "brotlicffi";
|
||||
version = "1.0.9.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-hyper";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0qx7an7772brmx1rbbrqzqnkqqvicc70mx740nl31kzzyv4jjs00";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
brotli
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export USE_SHARED_BROTLI=1
|
||||
'';
|
||||
|
||||
# Test data is not available, only when using libbortli git checkout
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "brotlicffi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python CFFI bindings to the Brotli library";
|
||||
homepage = "https://github.com/python-hyper/brotlicffi";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -1212,6 +1212,10 @@ in {
|
||||
|
||||
brotli = callPackage ../development/python-modules/brotli { };
|
||||
|
||||
brotlicffi = callPackage ../development/python-modules/brotlicffi {
|
||||
inherit (pkgs) brotli;
|
||||
};
|
||||
|
||||
brotlipy = callPackage ../development/python-modules/brotlipy { };
|
||||
|
||||
brottsplatskartan = callPackage ../development/python-modules/brottsplatskartan { };
|
||||
|
Loading…
Reference in New Issue
Block a user