evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / dlx / default.nix
blob3917dd4540ccdbce8c623e3d8b65821ca4fac01d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   python,
6 }:
8 buildPythonPackage rec {
9   pname = "dlx";
10   version = "1.0.4";
11   format = "setuptools";
13   # untagged releases
14   src = fetchFromGitHub {
15     owner = "sraaphorst";
16     repo = "dlx_python";
17     rev = "02d1ed534df60513095633da07e67a6593b9e9b4";
18     sha256 = "0c6dblbypwmx6yrk9qxp157m3cd7lq3j411ifr3shscv1igxv5hk";
19   };
21   # No test suite, so just run an example
22   pythonImportsCheck = [ "dlx" ];
23   # ./examples/design.py requires pyncomb, not in tree
24   checkPhase = ''
25     # example sudoku board from ./examples/sudoku.py
26     ${python.interpreter} ./examples/sudoku.py 3 "070285010008903500000000000500010008010000090900040003000000000002408600090632080"
27   '';
29   meta = with lib; {
30     description = "Implementation of Donald Knuth's Dancing Links algorithm";
31     homepage = "https://github.com/sraaphorst/dlx_python";
32     license = licenses.asl20;
33     maintainers = with maintainers; [ drewrisinger ];
34   };