Merge pull request #133578 from smancill/python-chess
python3Packages.chess: init at 1.6.1
This commit is contained in:
commit
548a057e21
3 changed files with 41 additions and 0 deletions
|
@ -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";
|
||||
|
|
33
pkgs/development/python-modules/chess/default.nix
Normal file
33
pkgs/development/python-modules/chess/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue