1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, toolz 5, multipledispatch 6, py 7, pytestCheckHook 8, pytest-html 9, pytest-benchmark 10}: 11 12buildPythonPackage rec { 13 pname = "logical-unification"; 14 version = "0.4.6"; 15 16 src = fetchFromGitHub { 17 owner = "pythological"; 18 repo = "unification"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-uznmlkREFONU1YoI/+mcfb+Yg30NinWvsMxTfHCXzOU="; 21 }; 22 23 propagatedBuildInputs = [ 24 toolz 25 multipledispatch 26 ]; 27 28 nativeCheckInputs = [ 29 py 30 pytestCheckHook 31 pytest-html 32 pytest-benchmark # Needed for the `--benchmark-skip` flag 33 ]; 34 35 pytestFlagsArray = [ 36 "--benchmark-skip" 37 "--html=testing-report.html" 38 "--self-contained-html" 39 ]; 40 41 pythonImportsCheck = [ "unification" ]; 42 43 meta = with lib; { 44 description = "Straightforward unification in Python that's extensible via generic functions"; 45 homepage = "https://github.com/pythological/unification"; 46 changelog = "https://github.com/pythological/unification/releases"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ Etjean ]; 49 }; 50}