Merge pull request #120085 from FlorianFranzen/unify

This commit is contained in:
Martin Weinelt 2021-04-21 20:27:58 +02:00 committed by GitHub
commit e22b1dbfef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, untokenize
, python
}:
buildPythonPackage rec {
pname = "unify";
version = "0.5";
# 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 ];
checkPhase = "${python.interpreter} -m unittest discover";
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 ];
};
}

View file

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "untokenize";
version = "0.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2";
};
checkPhase = "${python.interpreter} -m unittest discover";
meta = with lib; {
description = "Transforms tokens into original source code while preserving whitespace";
homepage = "https://github.com/myint/untokenize";
license = licenses.mit;
maintainers = with maintainers; [ FlorianFranzen ];
};
}

View file

@ -3454,6 +3454,8 @@ in
unifdef = callPackage ../development/tools/misc/unifdef { };
unify = with python3Packages; toPythonApplication unify;
unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { };
usb-modeswitch = callPackage ../development/tools/misc/usb-modeswitch { };

View file

@ -8733,6 +8733,8 @@ in {
unifi = callPackage ../development/python-modules/unifi { };
unify = callPackage ../development/python-modules/unify { };
unifiled = callPackage ../development/python-modules/unifiled { };
units = callPackage ../development/python-modules/units { };
@ -8751,6 +8753,8 @@ in {
untangle = callPackage ../development/python-modules/untangle { };
untokenize = callPackage ../development/python-modules/untokenize { };
upass = callPackage ../development/python-modules/upass { };
update_checker = callPackage ../development/python-modules/update_checker { };