evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / seqdiag / default.nix
blob754ef870f8656e38ff8c913a87296a1f4901e174
2   lib,
3   blockdiag,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "seqdiag";
13   version = "3.0.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "blockdiag";
20     repo = "seqdiag";
21     rev = "refs/tags/${version}";
22     hash = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [ blockdiag ];
29   patches = [ ./fix_test_generate.patch ];
31   nativeCheckInputs = [ pytestCheckHook ];
32   pytestFlagsArray = [ "src/seqdiag/tests/" ];
34   pythonImportsCheck = [ "seqdiag" ];
36   meta = with lib; {
37     description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
38     homepage = "http://blockdiag.com/";
39     changelog = "https://github.com/blockdiag/seqdiag/blob/${version}/CHANGES.rst";
40     license = licenses.asl20;
41     maintainers = with maintainers; [ bjornfor ];
42     mainProgram = "seqdiag";
43     platforms = platforms.unix;
44   };