2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, untokenize
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "unify";
|
|
|
|
version = "0.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
# PyPi release is missing tests (see https://github.com/myint/unify/pull/18)
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myint";
|
|
|
|
repo = "unify";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1l6xxygaigacsxf0g5f7w5gpqha1ava6mcns81kqqy6vw91pyrbi";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ untokenize ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|