saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / ssort / default.nix
blob64cb1078da40fd0e6fab8826e9bd6fd0a0783254
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   setuptools,
6   pathspec,
7   pytestCheckHook,
8   pyyaml,
9 }:
11 buildPythonPackage rec {
12   pname = "ssort";
13   version = "0.14.0";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "bwhmather";
18     repo = "ssort";
19     tag = version;
20     hash = "sha256-TINktjuTdyRYkqIs3Jyv6vobSBqV1iPoHrG36sBHah8=";
21   };
23   build-system = [ setuptools ];
25   dependencies = [ pathspec ];
27   pythonImportsCheck = [ "ssort" ];
29   nativeCheckInputs = [
30     pytestCheckHook
31     pyyaml
32   ];
34   preCheck = ''
35     export PATH=$out/bin:$PATH
36   '';
38   meta = {
39     description = "Automatically sorting python statements within a module";
40     homepage = "https://github.com/bwhmather/ssort";
41     license = lib.licenses.mit;
42     maintainers = with lib.maintainers; [ tochiaha ];
43     mainProgram = "ssort";
44   };