diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index aba4884b9eef..2e1efa65be99 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/development/python-modules/chess/default.nix b/pkgs/development/python-modules/chess/default.nix new file mode 100644 index 000000000000..baef04eab5b5 --- /dev/null +++ b/pkgs/development/python-modules/chess/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e705d5093201..651e2406d18c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };