mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-13 03:58:50 +00:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
aiohttp,
|
|
aws-request-signer,
|
|
boto3,
|
|
botocore,
|
|
pycognito,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aioaquacell";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jordi1990";
|
|
repo = "aioaquacell";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ghzuNIqpDwrt2EJ8u74yF5pWdS2nR3FvbPdHQMH4KxE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
|
|
'';
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aws-request-signer
|
|
boto3
|
|
botocore
|
|
pycognito
|
|
];
|
|
|
|
pythonImportsCheck = [ "aioaquacell" ];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Jordi1990/aioaquacell/releases/tag/${finalAttrs.version}";
|
|
description = "Asynchronous library to retrieve details of your Aquacell water softener device";
|
|
homepage = "https://github.com/Jordi1990/aioaquacell";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
})
|