at master 968 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6}: 7 8buildPythonPackage { 9 pname = "dlx"; 10 version = "1.0.4"; 11 format = "setuptools"; 12 13 # untagged releases 14 src = fetchFromGitHub { 15 owner = "sraaphorst"; 16 repo = "dlx_python"; 17 rev = "02d1ed534df60513095633da07e67a6593b9e9b4"; 18 sha256 = "0c6dblbypwmx6yrk9qxp157m3cd7lq3j411ifr3shscv1igxv5hk"; 19 }; 20 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 ''; 28 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 }; 35}