evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / ssort / default.nix
blob6a60f6ab1e5397b5f26be9d8182e4f9fea34c11a
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     rev = "refs/tags/${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   };