blob: 71a950b98bd70204998d94d4098715777ee9a896 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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";
};
}
|