nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix
Fabian Affolter 6c48ef9f91 python311Packages.twentemilieu: 2.0.0 -> 2.0.1
Diff: frenck/python-twentemilieu@refs/tags/v2.0.0...v2.0.1

Changelog: https://github.com/frenck/python-twentemilieu/releases/tag/v2.0.1
2023-11-20 19:56:27 +01:00

59 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, yarl
, aresponses
, poetry-core
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "twentemilieu";
version = "2.0.1";
format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-twentemilieu";
rev = "refs/tags/v${version}";
hash = "sha256-0rs+nBJfyXRj/3n/G2JzUDXaiIYZmWsoIcgLoWKhlV4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov" "" \
--replace '"0.0.0"' '"${version}"'
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
yarl
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"twentemilieu"
];
meta = with lib; {
description = "Python client for Twente Milieu";
homepage = "https://github.com/frenck/python-twentemilieu";
changelog = "https://github.com/frenck/python-twentemilieu/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}