python3Packages.pvo: init at 0.1.0
This commit is contained in:
parent
bddfc03e71
commit
420543cc59
61
pkgs/development/python-modules/pvo/default.nix
Normal file
61
pkgs/development/python-modules/pvo/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user