mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +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.
45 lines
838 B
Nix
45 lines
838 B
Nix
{ lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pytest-mypy
|
|
, pythonOlder
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiokef";
|
|
version = "0.2.17";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "basnijholt";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
tenacity
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov
|
|
pytest-mypy
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests" ];
|
|
pythonImportsCheck = [ "aiokef" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for KEF speakers";
|
|
homepage = "https://github.com/basnijholt/aiokef";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|