mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
37 lines
855 B
Nix
37 lines
855 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chess";
|
|
version = "1.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "niklasf";
|
|
repo = "python-${pname}";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jfPg1W9Qp0DlAbMXaFqZ6Ri2zMOW6EKUHwi7Azn/yl0=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "chess" ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} ./test.py -v
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Chess library with move generation, move validation, and support for common formats";
|
|
homepage = "https://github.com/niklasf/python-chess";
|
|
changelog = "https://github.com/niklasf/python-chess/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ smancill ];
|
|
};
|
|
}
|