python3Packages.{sseclient-py,pyarlo}: fix build (#503700)
This commit is contained in:
@@ -6,22 +6,25 @@
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
requests-mock,
|
||||
setuptools,
|
||||
sseclient-py,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalattrs: {
|
||||
pname = "pyarlo";
|
||||
version = "0.2.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tchellomello";
|
||||
repo = "python-arlo";
|
||||
rev = version;
|
||||
tag = finalattrs.version;
|
||||
sha256 = "0pp7y2llk4xnf6zh57j5xas0gw5zqm42qaqssd8p4qa3g5rds8k3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
requests
|
||||
sseclient-py
|
||||
];
|
||||
@@ -37,7 +40,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Python library to work with Netgear Arlo cameras";
|
||||
homepage = "https://github.com/tchellomello/python-arlo";
|
||||
license = with lib.licenses; [ lgpl3Plus ];
|
||||
changelog = "https://github.com/tchellomello/python-arlo/releases/tag/${finalattrs.src.tag}";
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -2,32 +2,33 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "sseclient-py";
|
||||
version = "1.9.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mpetazzoni";
|
||||
repo = "sseclient";
|
||||
tag = "sseclient-py-${version}";
|
||||
tag = "sseclient-py-${finalAttrs.version}";
|
||||
hash = "sha256-AIldZFElGgSbw38aZWCWI1N35MiE+b9D1s/XhD7aIvo=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "sseclient" ];
|
||||
|
||||
enabledTestPaths = [ "tests/unittests.py" ];
|
||||
|
||||
meta = {
|
||||
description = "Pure-Python Server Side Events (SSE) client";
|
||||
homepage = "https://github.com/mpetazzoni/sseclient";
|
||||
changelog = "https://github.com/mpetazzoni/sseclient/releases/tag/sseclient-py-${src.tag}";
|
||||
changelog = "https://github.com/mpetazzoni/sseclient/releases/tag/sseclient-py-${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ jamiemagee ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user