8349aecef1
GitOrigin-RevId: 9bf75dd50b7b6d3ce6aaf6563db95f41438b9bdb
33 lines
739 B
Nix
33 lines
739 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chess";
|
|
version = "1.7.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "niklasf";
|
|
repo = "python-${pname}";
|
|
rev = "v${version}";
|
|
sha256 = "0f2q9sif1rqjlgzkf7dnxrclmw8v84hzyrnq21g8k1cwqj5fx9j2";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|