2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "railroad-diagrams";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "3.0.1";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-qRMyuskAyzw2czH6m2mfCJe8+GtyZPZUWGdd9DDQTOM=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# This is a dependency of pyparsing, which is a dependency of pytest
|
2022-02-10 20:34:41 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "railroad" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
description = "Module to generate SVG railroad syntax diagrams";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/tabatkins/railroad-diagrams";
|
|
|
|
license = licenses.cc0;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|