mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 04:57:26 +03:00
python311Packages.aiohttp-zlib-ng: init at 0.1.1
Enable zlib_ng on aiohttp
This commit is contained in:
parent
a8117ff232
commit
4d9830835f
39
pkgs/development/python-modules/aiohttp-zlib-ng/default.nix
Normal file
39
pkgs/development/python-modules/aiohttp-zlib-ng/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, aiohttp
|
||||
, zlib-ng
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-zlib-ng";
|
||||
version = "0.1.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "aiohttp-zlib-ng";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dTNwt4eX6ZQ8ySK2/9ziVbc3KFg2aL/EsiBWaJRC4x8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
zlib-ng
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aiohttp_zlib_ng" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Enable zlib_ng on aiohttp";
|
||||
homepage = "https://github.com/bdraco/aiohttp-zlib-ng";
|
||||
changelog = "https://github.com/bdraco/aiohttp-zlib-ng/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -50,6 +50,16 @@ buildPythonPackage rec {
|
||||
rm -rf src
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# commandline tests fail to find the built module
|
||||
"test_compress_fast_best_are_exclusive"
|
||||
"test_compress_infile_outfile"
|
||||
"test_compress_infile_outfile_default"
|
||||
"test_decompress_cannot_have_flags_compression"
|
||||
"test_decompress_infile_outfile"
|
||||
"test_decompress_infile_outfile_error"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A drop-in replacement for Python's zlib and gzip modules using zlib-ng";
|
||||
homepage = "https://github.com/pycompression/python-zlib-ng";
|
||||
|
@ -250,6 +250,8 @@ self: super: with self; {
|
||||
|
||||
aiohttp-wsgi = callPackage ../development/python-modules/aiohttp-wsgi { };
|
||||
|
||||
aiohttp-zlib-ng = callPackage ../development/python-modules/aiohttp-zlib-ng { };
|
||||
|
||||
aioitertools = callPackage ../development/python-modules/aioitertools { };
|
||||
|
||||
aiobiketrax = callPackage ../development/python-modules/aiobiketrax { };
|
||||
|
Loading…
Reference in New Issue
Block a user