Merge pull request #151842 from fabaff/python-pvoutput

python3Packages.pvo: init at 0.1.0
This commit is contained in:
Fabian Affolter 2021-12-23 07:58:20 +01:00 committed by GitHub
commit d429ed6c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -6279,6 +6279,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 {