mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
python310Packages.railroad-diagrams: disable on older Python releases
This commit is contained in:
parent
106bc570be
commit
78ede9c299
@ -1,24 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "railroad-diagrams";
|
||||
version = "2.0.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-wRClrA4I/DWNw/hL5rowQMn0R61c6qiNg9Ho6nXqi+4=";
|
||||
hash = "sha256-wRClrA4I/DWNw/hL5rowQMn0R61c6qiNg9Ho6nXqi+4=";
|
||||
};
|
||||
|
||||
# this is a dependency of pyparsing, which is a dependency of pytest
|
||||
# This is a dependency of pyparsing, which is a dependency of pytest
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "railroad" ];
|
||||
pythonImportsCheck = [
|
||||
"railroad"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate SVG railroad syntax diagrams, like on JSON.org";
|
||||
description = "Module to generate SVG railroad syntax diagrams";
|
||||
homepage = "https://github.com/tabatkins/railroad-diagrams";
|
||||
license = licenses.cc0;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
|
Loading…
Reference in New Issue
Block a user