Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / chess / default.nix
blob5e32d74b4379393d74814c98e0b3017e93bc5bdc
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "chess";
10   version = "1.10.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "niklasf";
17     repo = "python-${pname}";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-jfPg1W9Qp0DlAbMXaFqZ6Ri2zMOW6EKUHwi7Azn/yl0=";
20   };
22   pythonImportsCheck = [
23     "chess"
24   ];
26   checkPhase = ''
27     ${python.interpreter} ./test.py -v
28   '';
30   meta = with lib; {
31     description = "A chess library with move generation, move validation, and support for common formats";
32     homepage = "https://github.com/niklasf/python-chess";
33     changelog = "https://github.com/niklasf/python-chess/blob/v${version}/CHANGELOG.rst";
34     license = licenses.gpl3Plus;
35     maintainers = with maintainers; [ smancill ];
36   };