diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2024-11-29 08:31:31 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2024-12-08 14:10:52 +0100 |
| commit | fe0b1aea1fd02809043d8c0793088bb8b3db2cea (patch) | |
| tree | 5e5864f7515883742ebda0a56bb6d7cd90d65baa /gnu | |
| parent | c01730199d971e932901c35f627656bffe876f86 (diff) | |
gnu: Add python-clingexplaid.
* gnu/packages/potassco.scm (python-clingexplaid): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/potassco.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm index ec990f13820..57caf6aabcf 100644 --- a/gnu/packages/potassco.scm +++ b/gnu/packages/potassco.scm | |||
| @@ -756,3 +756,36 @@ but also works fine along custom-built test. Clintest monitors the test | |||
| 756 | outcome while solving to abort the search for solutions once the outcome is | 756 | outcome while solving to abort the search for solutions once the outcome is |
| 757 | certain.") | 757 | certain.") |
| 758 | (license license:expat))) | 758 | (license license:expat))) |
| 759 | |||
| 760 | (define-public python-clingexplaid | ||
| 761 | (package | ||
| 762 | (name "python-clingexplaid") | ||
| 763 | (version "1.1.0") | ||
| 764 | (source (origin | ||
| 765 | (method git-fetch) | ||
| 766 | (uri (git-reference | ||
| 767 | (url "https://github.com/potassco/clingo-explaid") | ||
| 768 | (commit (string-append "v" version)))) | ||
| 769 | (file-name (git-file-name name version)) | ||
| 770 | (sha256 | ||
| 771 | (base32 "1s80cs3clvz26r7cvjprlk6zip7yqswwhzzwmmrv5mf5p89ymrgm")))) | ||
| 772 | (build-system pyproject-build-system) | ||
| 773 | (arguments | ||
| 774 | (list #:test-flags #~(list "-k" "not test_main") | ||
| 775 | #:phases #~(modify-phases %standard-phases | ||
| 776 | (add-after 'unpack 'fix-pyproject-toml | ||
| 777 | (lambda _ | ||
| 778 | (substitute* "pyproject.toml" | ||
| 779 | (("dynamic = .*" all) | ||
| 780 | (string-append "version = \"" | ||
| 781 | #$version | ||
| 782 | "\"\n")) | ||
| 783 | (("\"autoflake\",") ""))))))) | ||
| 784 | (propagated-inputs (list python-clingo)) | ||
| 785 | (native-inputs (list python-pytest)) | ||
| 786 | (home-page "https://github.com/potassco/clingo-explaid") | ||
| 787 | (synopsis "Develop explanation systems with Clingo") | ||
| 788 | (description "This package provides tools to develop explanation systems | ||
| 789 | with clingo. It allows extracting minimal unsatisfiable subsets and | ||
| 790 | unsatisfiable constraints.") | ||
| 791 | (license license:expat))) | ||
