blob: 556725bebd2bfadd5444be1d292f644c25856450 (
plain)
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
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools,
pytestCheckHook,
untokenize,
}:
buildPythonPackage rec {
pname = "unify";
version = "0.5";
pyproject = true;
# lib2to3 usage and unmaintained since 2019
disabled = pythonAtLeast "3.13";
src = fetchFromGitHub {
owner = "myint";
repo = "unify";
tag = "v${version}";
hash = "sha256-cWV/Q+LbeIxnQNqyatRWQUF8X+HHlQdc10y9qJ7v3dA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ untokenize ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "unify" ];
disabledTests = [
# https://github.com/myint/unify/issues/21
"test_format_code"
"test_format_code_with_backslash_in_comment"
];
meta = {
description = "Modifies strings to all use the same quote where possible";
mainProgram = "unify";
homepage = "https://github.com/myint/unify";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ FlorianFranzen ];
};
}
|