diff options
Diffstat (limited to 'pkgs/development/python-modules/gamble/default.nix')
-rw-r--r-- | pkgs/development/python-modules/gamble/default.nix | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/gamble/default.nix b/pkgs/development/python-modules/gamble/default.nix index c4bb320271023..088e253def72e 100644 --- a/pkgs/development/python-modules/gamble/default.nix +++ b/pkgs/development/python-modules/gamble/default.nix @@ -1,29 +1,31 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + poetry-core, }: buildPythonPackage rec { pname = "gamble"; version = "0.13"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-P0w1Q1Kus742Yu/MpqheEbp1+Pt21f163JWZfKJj3SA="; + src = fetchFromGitHub { + owner = "jpetrucciani"; + repo = "gamble"; + rev = "refs/tags/${version}"; + hash = "sha256-eHosY/JfJr317S7WI8phy7DNHf3cZzs6c5MMfw7yzAE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + build-system = [ poetry-core ]; - pythonImportsCheck = [ - "gamble" - ]; + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "gamble" ]; meta = with lib; { description = "Collection of gambling classes/tools"; |