depot/third_party/nixpkgs/pkgs/development/python-modules/unify/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

52 lines
970 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, pytestCheckHook
, untokenize
}:
buildPythonPackage rec {
pname = "unify";
version = "0.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "myint";
repo = "unify";
rev = "refs/tags/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 = with lib; {
description = "Modifies strings to all use the same quote where possible";
homepage = "https://github.com/myint/unify";
license = licenses.mit;
maintainers = with maintainers; [ FlorianFranzen ];
};
}