blob: 55cdb3f7ffc4351a6f1d63044d379ec073196f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage {
pname = "dlx";
version = "1.0.4";
format = "setuptools";
# untagged releases
src = fetchFromGitHub {
owner = "sraaphorst";
repo = "dlx_python";
rev = "02d1ed534df60513095633da07e67a6593b9e9b4";
sha256 = "0c6dblbypwmx6yrk9qxp157m3cd7lq3j411ifr3shscv1igxv5hk";
};
# No test suite, so just run an example
pythonImportsCheck = [ "dlx" ];
# ./examples/design.py requires pyncomb, not in tree
checkPhase = ''
# example sudoku board from ./examples/sudoku.py
${python.interpreter} ./examples/sudoku.py 3 "070285010008903500000000000500010008010000090900040003000000000002408600090632080"
'';
meta = {
description = "Implementation of Donald Knuth's Dancing Links algorithm";
homepage = "https://github.com/sraaphorst/dlx_python";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|