python3Packages.radon: init at 6.0.1
This commit is contained in:
parent
812887a713
commit
be2958005a
2 changed files with 69 additions and 0 deletions
67
pkgs/development/python-modules/radon/default.nix
Normal file
67
pkgs/development/python-modules/radon/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, fetchpatch
|
||||
# Python deps
|
||||
, mando
|
||||
, colorama
|
||||
, pytest-mock
|
||||
, tomli
|
||||
, poetry-core
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "radon";
|
||||
version = "6.0.1";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rubik";
|
||||
repo = "radon";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-yY+j9kuX0ou/uDoVI/Qfqsmq0vNHv735k+vRl22LwwY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# NOTE: Remove after next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/rubik/radon/commit/ce5d2daa0a9e0e843059d6f57a8124c64a87a6dc.patch";
|
||||
hash = "sha256-WwcfR2ZEWeRiMKdMZAwtZRBcWOqoqpaVTmVo0k+Tn74=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mando
|
||||
colorama
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
toml = [
|
||||
tomli
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"radon"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Various code metrics for Python code";
|
||||
homepage = "https://radon.readthedocs.org";
|
||||
changelog = "https://github.com/rubik/radon/blob/v${version}/CHANGELOG";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ t4ccer ];
|
||||
mainProgram = "radon";
|
||||
};
|
||||
}
|
|
@ -11912,6 +11912,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 { };
|
||||
|
|
Loading…
Reference in a new issue