python3Packages.pvo: init at 0.1.0

This commit is contained in:
Fabian Affolter 2021-12-22 23:13:59 +01:00
parent bddfc03e71
commit 420543cc59
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,61 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "pvo";
version = "0.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-pvoutput";
rev = "v${version}";
sha256 = "sha256-m+6fCBPN0LG6HoRwefVVOGEjccoB8mCWJOlSNHxEErM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pydantic
yarl
];
checkInputs = [
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" ""
'';
pythonImportsCheck = [
"pvo"
];
meta = with lib; {
description = "Python module to interact with the PVOutput API";
homepage = "https://github.com/frenck/python-pvoutput";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6277,6 +6277,8 @@ in {
pvlib = callPackage ../development/python-modules/pvlib { };
pvo = callPackage ../development/python-modules/pvo { };
Pweave = callPackage ../development/python-modules/pweave { };
pwntools = callPackage ../development/python-modules/pwntools {