Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/mando/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, six
}:

buildPythonPackage {
pname = "mando";
version = "0.6.4";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "rubik";
repo = "mando";

# this rev contains a fix for newer versions of python (3.8+), but is still tagged 0.6.4
rev = "460c2ed296f04530a84d39c1e547b143f11b7580";
sha256 = "sha256-Ge73kNrE5PeiFKy1lxOC3OS/0b5HWfGz95ZuLcMJCkI=";
};

nativeCheckInputs = [
pytestCheckHook
];

# these tests are disabled since they are only docstring tests and appear to be broken upstream
disabledTests = [
"test_google_docstring_help"
"test_numpy_docstring_help"
];

propagatedBuildInputs = [ six ];

pythonImportsCheck = [
"mando"
];

meta = with lib; {
description = "Create Python CLI apps with little to no effort at all";
homepage = "https://mando.readthedocs.org/";
changelog = "https://github.com/rubik/mando/blob/master/CHANGELOG";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}

49 changes: 49 additions & 0 deletions pkgs/development/python-modules/radon/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, mando
, colorama
, future
, pytest-mock
}:

buildPythonPackage rec {
pname = "radon";
version = "5.1.0";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "rubik";
repo = "radon";
rev = "v${version}";
sha256 = "sha256-5gO3Wciqecv6uXC8cwDk/DQIM7fQ9muw/u+z73fV6aY=";
};

nativeCheckInputs = [
pytestCheckHook
pytest-mock
];

propagatedBuildInputs = [
mando
colorama
future
];

pythonImportsCheck = [
"radon"
];

meta = with lib; {
description = "Code Metrics in Python";
homepage = "https://radon.readthedocs.org/";
changelog = "https://github.com/rubik/radon/blob/master/CHANGELOG";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}

4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5623,6 +5623,8 @@ self: super: with self; {

managesieve = callPackage ../development/python-modules/managesieve { };

mando = callPackage ../development/python-modules/mando { };

manhole = callPackage ../development/python-modules/manhole { };

manimpango = callPackage ../development/python-modules/manimpango {
Expand Down Expand Up @@ -9752,6 +9754,8 @@ self: super: with self; {

radish-bdd = callPackage ../development/python-modules/radish-bdd { };

radon = callPackage ../development/python-modules/radon { };

railroad-diagrams = callPackage ../development/python-modules/railroad-diagrams { };

rainbowstream = callPackage ../development/python-modules/rainbowstream { };
Expand Down