mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
853 B
Nix
47 lines
853 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "3.2.1";
|
|
pname = "pamqp";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gmr";
|
|
repo = "pamqp";
|
|
rev = version;
|
|
hash = "sha256-zvvRoGMNP4NMy3Etjif5MYUPdRqmQXATbFgxaPp1TaM=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pamqp.base"
|
|
"pamqp.body"
|
|
"pamqp.commands"
|
|
"pamqp.common"
|
|
"pamqp.decode"
|
|
"pamqp.encode"
|
|
"pamqp.exceptions"
|
|
"pamqp.frame"
|
|
"pamqp.header"
|
|
"pamqp.heartbeat"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RabbitMQ Focused AMQP low-level library";
|
|
homepage = "https://github.com/gmr/pamqp";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|