depot/third_party/nixpkgs/pkgs/development/python-modules/gentools/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

47 lines
1,001 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, importlib-metadata
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "gentools";
version = "1.2.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ariebovenberg";
repo = "gentools";
rev = "refs/tags/v${version}";
hash = "sha256-+6KTFxOpwvGOCqy6JU87gOZmDa6MvjR10qES5wIfrjI=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"gentools"
];
meta = with lib; {
description = "Tools for generators, generator functions, and generator-based coroutines";
homepage = "https://gentools.readthedocs.io/";
changelog = "https://github.com/ariebovenberg/gentools/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ mredaelli ];
};
}