Unverified Commit 7c703121 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #309717 from jpetrucciani/jacobi_update_gamble_build

python312Packages.gamble: fix build to use poetry
parents eadc10a2 c443d401
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, 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=";
  };

  build-system = [
    poetry-core
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];