nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 poetry-core,
7}:
8
9buildPythonPackage rec {
10 pname = "gamble";
11 version = "0.14.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jpetrucciani";
16 repo = "gamble";
17 tag = version;
18 hash = "sha256-vzaY5gJ0Ou2ArUJ0kuTWzTeLfiRDhUt/Hxpns9rFiDk=";
19 };
20
21 build-system = [ poetry-core ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "gamble" ];
26
27 meta = {
28 description = "Collection of gambling classes/tools";
29 homepage = "https://github.com/jpetrucciani/gamble";
30 changelog = "https://github.com/jpetrucciani/gamble/releases/tag/${version}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ jpetrucciani ];
33 };
34}