Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / unify / default.nix
blob52c6ba64e59f3b5d322c5eb2d2c8217d54972b92
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , setuptools
6 , pytestCheckHook
7 , untokenize
8 }:
10 buildPythonPackage rec {
11   pname = "unify";
12   version = "0.5";
13   pyproject = true;
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "myint";
19     repo = "unify";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-cWV/Q+LbeIxnQNqyatRWQUF8X+HHlQdc10y9qJ7v3dA=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     untokenize
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "unify"
38   ];
40   disabledTests = [
41     # https://github.com/myint/unify/issues/21
42     "test_format_code"
43     "test_format_code_with_backslash_in_comment"
44   ];
46   meta = with lib; {
47     description = "Modifies strings to all use the same quote where possible";
48     mainProgram = "unify";
49     homepage = "https://github.com/myint/unify";
50     license = licenses.mit;
51     maintainers = with maintainers; [ FlorianFranzen ];
52   };