889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
33 lines
748 B
Nix
33 lines
748 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chess";
|
|
version = "1.9.2";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "niklasf";
|
|
repo = "python-${pname}";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-RGAEkeE6YAik//yZt9mJdrFj4z0yxlHjZPLUaHd9yUQ=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "chess" ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} ./test.py -v
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A chess library for Python, with move generation, move validation, and support for common formats";
|
|
homepage = "https://github.com/niklasf/python-chess";
|
|
maintainers = with maintainers; [ smancill ];
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|