nixpkgs/pkgs/development/python-modules/iaqualink/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatch-vcs
, hatchling
, httpx
, pytestCheckHook
, pythonOlder
, respx
}:
buildPythonPackage rec {
pname = "iaqualink";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "flz";
repo = "iaqualink-py";
rev = "v${version}";
hash = "sha256-ewPP2Xq+ecZGc5kokvLEsRokGqTWlymrzkwk480tapk=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
httpx
] ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
pytestCheckHook
respx
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "pytest --cov-config=pyproject.toml --cov-report=xml --cov-report=term --cov=src --cov=tests" ""
'';
pythonImportsCheck = [
"iaqualink"
];
meta = with lib; {
description = "Python library for Jandy iAqualink";
homepage = "https://github.com/flz/iaqualink-py";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}