1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-timeout,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiopvpc";
|
|
version = "4.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "azogue";
|
|
repo = "aiopvpc";
|
|
tag = "v${version}";
|
|
hash = "sha256-1xeXfhoXRfJ7vrpRPeYmwcAGjL09iNCOm/f4pPvuZLU=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
python-dotenv
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiopvpc" ];
|
|
|
|
meta = {
|
|
description = "Python module to download Spanish electricity hourly prices (PVPC)";
|
|
homepage = "https://github.com/azogue/aiopvpc";
|
|
changelog = "https://github.com/azogue/aiopvpc/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|