Merge pull request #120085 from FlorianFranzen/unify
This commit is contained in:
commit
e22b1dbfef
30
pkgs/development/python-modules/unify/default.nix
Normal file
30
pkgs/development/python-modules/unify/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
24
pkgs/development/python-modules/untokenize/default.nix
Normal file
24
pkgs/development/python-modules/untokenize/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -3454,6 +3454,8 @@ in
|
|||||||
|
|
||||||
unifdef = callPackage ../development/tools/misc/unifdef { };
|
unifdef = callPackage ../development/tools/misc/unifdef { };
|
||||||
|
|
||||||
|
unify = with python3Packages; toPythonApplication unify;
|
||||||
|
|
||||||
unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { };
|
unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { };
|
||||||
|
|
||||||
usb-modeswitch = callPackage ../development/tools/misc/usb-modeswitch { };
|
usb-modeswitch = callPackage ../development/tools/misc/usb-modeswitch { };
|
||||||
|
@ -8733,6 +8733,8 @@ in {
|
|||||||
|
|
||||||
unifi = callPackage ../development/python-modules/unifi { };
|
unifi = callPackage ../development/python-modules/unifi { };
|
||||||
|
|
||||||
|
unify = callPackage ../development/python-modules/unify { };
|
||||||
|
|
||||||
unifiled = callPackage ../development/python-modules/unifiled { };
|
unifiled = callPackage ../development/python-modules/unifiled { };
|
||||||
|
|
||||||
units = callPackage ../development/python-modules/units { };
|
units = callPackage ../development/python-modules/units { };
|
||||||
@ -8751,6 +8753,8 @@ in {
|
|||||||
|
|
||||||
untangle = callPackage ../development/python-modules/untangle { };
|
untangle = callPackage ../development/python-modules/untangle { };
|
||||||
|
|
||||||
|
untokenize = callPackage ../development/python-modules/untokenize { };
|
||||||
|
|
||||||
upass = callPackage ../development/python-modules/upass { };
|
upass = callPackage ../development/python-modules/upass { };
|
||||||
|
|
||||||
update_checker = callPackage ../development/python-modules/update_checker { };
|
update_checker = callPackage ../development/python-modules/update_checker { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user