2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
poetry-core,
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gamble";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.13";
|
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpetrucciani";
|
|
|
|
repo = "gamble";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-eHosY/JfJr317S7WI8phy7DNHf3cZzs6c5MMfw7yzAE=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gamble" ];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of gambling classes/tools";
|
|
|
|
homepage = "https://github.com/jpetrucciani/gamble";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jpetrucciani/gamble/releases/tag/${version}";
|
2022-01-25 03:21:06 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jpetrucciani ];
|
|
|
|
};
|
|
|
|
}
|