nixpkgs/pkgs/development/python-modules/elgato/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-07 07:36:11 +00:00
{ lib
2021-11-12 21:25:57 +00:00
, aiohttp
, aresponses
2021-06-07 07:36:11 +00:00
, buildPythonPackage
, fetchFromGitHub
, poetry-core
2021-11-12 21:25:57 +00:00
, pydantic
2021-06-07 07:36:11 +00:00
, pytest-asyncio
, pytestCheckHook
2021-11-12 21:25:57 +00:00
, pythonOlder
, yarl
2021-06-07 07:36:11 +00:00
}:
buildPythonPackage rec {
pname = "elgato";
2023-02-27 01:14:17 +00:00
version = "4.0.1";
2021-06-07 07:36:11 +00:00
format = "pyproject";
2022-01-13 19:20:03 +00:00
disabled = pythonOlder "3.9";
2021-11-12 21:25:57 +00:00
2021-06-07 07:36:11 +00:00
src = fetchFromGitHub {
owner = "frenck";
repo = "python-elgato";
2023-02-27 01:14:17 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-kyFnc/lMxgYy8s/gAP5vpEPV8a+dphOummr6G7deGQ4=";
2021-06-07 07:36:11 +00:00
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
2021-11-12 21:25:57 +00:00
pydantic
2021-06-07 07:36:11 +00:00
yarl
];
nativeCheckInputs = [
2021-06-07 07:36:11 +00:00
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
2021-11-12 21:25:57 +00:00
pythonImportsCheck = [
"elgato"
];
2021-06-07 07:36:11 +00:00
meta = with lib; {
description = "Python client for Elgato Key Lights";
homepage = "https://github.com/frenck/python-elgato";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}