mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +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.
50 lines
904 B
Nix
50 lines
904 B
Nix
{ lib
|
|
, argcomplete
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, httpx
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, urllib3
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amcrest";
|
|
version = "1.9.7";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tchellomello";
|
|
repo = "python-amcrest";
|
|
rev = version;
|
|
sha256 = "sha256-An7MnGtZsmEZU/y6E0sivdexFD6HJRTB1juXqHfbDzE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
argcomplete
|
|
httpx
|
|
requests
|
|
urllib3
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
pythonImportsCheck = [ "amcrest" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for Amcrest and Dahua Cameras";
|
|
homepage = "https://github.com/tchellomello/python-amcrest";
|
|
license = with licenses; [ gpl2Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|