Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pamqp / default.nix
blob62c568e64818fdb70def73ddf2c5b90ca611b58d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   version = "3.2.1";
10   pname = "pamqp";
12   disabled = pythonOlder "3.7";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "gmr";
18     repo = "pamqp";
19     rev = version;
20     hash = "sha256-zvvRoGMNP4NMy3Etjif5MYUPdRqmQXATbFgxaPp1TaM=";
21   };
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   pythonImportsCheck = [
28     "pamqp.base"
29     "pamqp.body"
30     "pamqp.commands"
31     "pamqp.common"
32     "pamqp.decode"
33     "pamqp.encode"
34     "pamqp.exceptions"
35     "pamqp.frame"
36     "pamqp.header"
37     "pamqp.heartbeat"
38   ];
40   meta = with lib; {
41     description = "RabbitMQ Focused AMQP low-level library";
42     homepage = "https://github.com/gmr/pamqp";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ dotlambda ];
45   };