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