Merge pull request #133578 from smancill/python-chess

python3Packages.chess: init at 1.6.1
This commit is contained in:
Fabian Affolter 2021-08-14 19:18:32 +02:00 committed by GitHub
commit 548a057e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 0 deletions

View file

@ -10006,6 +10006,12 @@
fingerprint = "6F8A 18AE 4101 103F 3C54 24B9 6AA2 3A11 93B7 064B";
}];
};
smancill = {
email = "smancill@smancill.dev";
github = "smancill";
githubId = 238528;
name = "Sebastián Mancilla";
};
smaret = {
email = "sebastien.maret@icloud.com";
github = "smaret";

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "chess";
version = "1.6.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "niklasf";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "sha256-2pyABmr6q1Y2/ivtvMYqRHE2Zjlyz2QO0us0w4l2HQM=";
};
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;
};
}

View file

@ -1427,6 +1427,8 @@ in {
cherrypy = callPackage ../development/python-modules/cherrypy { };
chess = callPackage ../development/python-modules/chess { };
chevron = callPackage ../development/python-modules/chevron { };
chiabip158 = callPackage ../development/python-modules/chiabip158 { };