From 78cd777c9399317ffbe9efd32900d7bf85bd7173 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 18:30:22 +0100 Subject: [PATCH] python3Packages.actdiag: 2.0.0 -> 3.0.0 --- .../python-modules/actdiag/default.nix | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/actdiag/default.nix b/pkgs/development/python-modules/actdiag/default.nix index 92917f6ea954..c1ab1843eb33 100644 --- a/pkgs/development/python-modules/actdiag/default.nix +++ b/pkgs/development/python-modules/actdiag/default.nix @@ -1,18 +1,44 @@ -{ lib, buildPythonPackage, fetchPypi -, nose, docutils, blockdiag, reportlab }: +{ lib +, blockdiag +, buildPythonPackage +, fetchFromGitHub +, nose +, pytestCheckHook +, pythonOlder +, setuptools +}: buildPythonPackage rec { pname = "actdiag"; version = "2.0.0"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "0g51v9dmdq18z33v332f1f0cmb3hqgaga5minj0mc2sglark1s7h"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "blockdiag"; + repo = pname; + rev = version; + sha256 = "sha256-pTWunoc6T1m+4SOe0ob0ac4ZwwXsYNZwkdwVtlMZrIo="; }; - propagatedBuildInputs = [ blockdiag docutils ]; + propagatedBuildInputs = [ + blockdiag + setuptools + ]; - checkInputs = [ nose reportlab ]; + checkInputs = [ + nose + pytestCheckHook + ]; + + pytestFlagsArray = [ + "src/actdiag/tests/" + ]; + + pythonImportsCheck = [ + "actdiag" + ]; meta = with lib; { description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";