My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/motioneye-client/default.nix

55 lines
1.1 KiB

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-timeout
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "motioneye-client";
version = "0.3.12";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dermotduffy";
repo = pname;
rev = "v${version}";
sha256 = "sha256-vEB9ztz0RTGoolFUVQcMV7DUthCEAx1kpwkAS2186OU=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytest-timeout
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" ""
'';
pythonImportsCheck = [
"motioneye_client"
];
meta = with lib; {
description = "Python library for motionEye";
homepage = "https://github.com/dermotduffy/motioneye-client";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}