diff --git a/pkgs/applications/version-management/bumpver/default.nix b/pkgs/applications/version-management/bumpver/default.nix new file mode 100644 index 000000000000..6aa4bcc52bc3 --- /dev/null +++ b/pkgs/applications/version-management/bumpver/default.nix @@ -0,0 +1,29 @@ +{ lib, python3, git, mercurial}: + +python3.pkgs.buildPythonApplication rec { + pname = "bumpver"; + version = "2020.1107"; + + src = python3.pkgs.fetchPypi { + inherit pname version; + sha256 = "75704333a8d1699e2cadcf1fcd3027a2cab6837ae343af10a61c6eef4e0313d7"; + }; + + prePatch = '' + substituteInPlace setup.py \ + --replace "if any(arg.startswith(\"bdist\") for arg in sys.argv):" ""\ + --replace "import lib3to6" ""\ + --replace "package_dir = lib3to6.fix(package_dir)" "" + ''; + + propagatedBuildInputs = with python3.pkgs; [ pathlib2 click toml lexid colorama setuptools ]; + + checkInputs = [ python3.pkgs.pytestCheckHook git mercurial]; + + meta = with lib; { + description = "Bump version numbers in project files"; + homepage = "https://pypi.org/project/bumpver/"; + license = licenses.mit; + maintainers = with maintainers; [ kfollesdal ]; + }; +} diff --git a/pkgs/development/python-modules/lexid/default.nix b/pkgs/development/python-modules/lexid/default.nix new file mode 100644 index 000000000000..4307d52d8913 --- /dev/null +++ b/pkgs/development/python-modules/lexid/default.nix @@ -0,0 +1,22 @@ +{ lib, python, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook, click }: + +buildPythonPackage rec { + pname = "lexid"; + version = "2020.1005"; + disabled = pythonOlder "3.6"; + src = fetchPypi { + inherit pname version; + sha256 = "52333a2b9ebd14aa0dfeb33de72bd159c2dc31adb9c59cddfc486e2b69bfdcd1"; + }; + + propagatedBuildInputs = [ click ]; + + checkInputs = [ pytestCheckHook ]; + + meta = with lib; { + description = "micro library to increment lexically ordered numerical ids"; + homepage = "https://pypi.org/project/lexid/"; + license = licenses.mit; + maintainers = with maintainers; [ kfollesdal ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8666e20deafb..4420d2f0bc96 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2786,6 +2786,8 @@ in inherit (pythonPackages) gyp; }; + bumpver = callPackage ../applications/version-management/bumpver { }; + bup = callPackage ../tools/backup/bup { }; burp = callPackage ../tools/backup/burp { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ad09b13d6c7d..500ed5a252c4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3371,6 +3371,8 @@ in { leveldb = callPackage ../development/python-modules/leveldb { }; + lexid = callPackage ../development/python-modules/lexid { }; + libagent = callPackage ../development/python-modules/libagent { }; pa-ringbuffer = callPackage ../development/python-modules/pa-ringbuffer { };