forked from mirrors/nixpkgs
Merge pull request #165394 from SuperSandro2000/hpack
This commit is contained in:
commit
e777b2ae00
|
@ -1,21 +1,34 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
, hypothesis
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hpack";
|
pname = "hpack";
|
||||||
version = "4.0.0";
|
version = "4.0.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "python-hyper";
|
||||||
sha256 = "fc41de0c63e687ebffde81187a948221294896f6bdc0ae2312708df339430095";
|
repo = "hpack";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-2CehGy3K5fKbkB1J8+8x1D4XvnBn1Mbapx+p8rdXDYc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
hypothesis
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "hpack" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pure-Python HPACK header compression";
|
description = "Pure-Python HPACK header compression";
|
||||||
homepage = "http://hyper.rtfd.org";
|
homepage = "https://github.com/python-hyper/hpack";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue