13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.5";
21 inherit pname version;
22 sha256 = "248081a39bcb56784deb018977e428605c1c758f10897a339fce1dd728ff007d";
25 propagatedBuildInputs = [
36 src = ./hardcode-graphviz-path.patch;
42 # test_graphviz_regression_tests also fails upstream: https://github.com/pydot/pydot/pull/198
43 substituteInPlace test/pydot_unittest.py \
44 --replace "test_graphviz_regression_tests" "no_test_graphviz_regression_tests" \
45 # Patch path for pytestCheckHook
46 substituteInPlace test/pydot_unittest.py \
47 --replace "shapefile_dir = os.path.join(test_dir, 'from-past-to-future')" "shapefile_dir = 'test/from-past-to-future'" \
48 --replace "path = os.path.join(test_dir, TESTS_DIR_1)" "path = os.path.join('test/', TESTS_DIR_1)"
52 "test/pydot_unittest.py"
58 "test_my_regression_tests"
61 pythonImportsCheck = [
66 description = "Allows to create both directed and non directed graphs from Python";
67 homepage = "https://github.com/erocarrera/pydot";
68 license = licenses.mit;
69 maintainers = with maintainers; [ ];