Merge pull request #324722 from Tochiaha/ssort

python312Package.ssort: init at 0.13.0
This commit is contained in:
❄️
2024-07-10 20:14:49 -03:00
committed by GitHub
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pathspec,
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "ssort";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bwhmather";
repo = "ssort";
rev = "refs/tags/${version}";
hash = "sha256-P/FUayCC7KfXjtzclTPLhLw5o0bV4L98tes69w+038o=";
};
build-system = [ setuptools ];
dependencies = [ pathspec ];
pythonImportsCheck = [ "ssort" ];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
meta = {
description = "Automatically sorting python statements within a module";
homepage = "https://github.com/bwhmather/ssort";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "ssort";
};
}
+2
View File
@@ -14716,6 +14716,8 @@ self: super: with self; {
ssg = callPackage ../development/python-modules/ssg { };
ssort = callPackage ../development/python-modules/ssort { };
stack-data = callPackage ../development/python-modules/stack-data { };
stanio = callPackage ../development/python-modules/stanio { };