diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 16:33:57 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-10-18 11:02:23 +0200 |
commit | c26dd4138b86071816e6f5fa14400f231549428c (patch) | |
tree | 052d874a09d6523f3b3c4d9a3f5ce0ae52f5492c /pkgs | |
parent | 968b1ab947b5016304b4ab81bea257bb2442e9c6 (diff) | |
download | nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar.gz nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar.bz2 nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar.lz nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar.xz nixlib-c26dd4138b86071816e6f5fa14400f231549428c.tar.zst nixlib-c26dd4138b86071816e6f5fa14400f231549428c.zip |
pythonPackage.git-sweep: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/git-sweep/default.nix | 25 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 18 |
2 files changed, 26 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/git-sweep/default.nix b/pkgs/development/python-modules/git-sweep/default.nix new file mode 100644 index 000000000000..e2182892e851 --- /dev/null +++ b/pkgs/development/python-modules/git-sweep/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, GitPython +}: + +buildPythonPackage rec { + pname = "git-sweep"; + version = "0.1.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1csp0zd049d643d409rfivbswwzrayb4i6gkypp5mc27fb1z2afd"; + }; + + propagatedBuildInputs = [ GitPython ]; + + meta = with stdenv.lib; { + description = "A command-line tool that helps you clean up Git branches"; + homepage = https://github.com/arc90/git-sweep; + license = licenses.mit; + maintainers = with maintainers; [ pSub ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 890ca2789a2d..86ebe7438950 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2382,23 +2382,7 @@ in { gipc = callPackage ../development/python-modules/gipc { }; - git-sweep = buildPythonPackage rec { - name = "git-sweep-0.1.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/git-sweep/${name}.tar.gz"; - sha256 = "1csp0zd049d643d409rfivbswwzrayb4i6gkypp5mc27fb1z2afd"; - }; - - propagatedBuildInputs = with self; [ GitPython ]; - - meta = { - description = "A command-line tool that helps you clean up Git branches"; - homepage = https://github.com/arc90/git-sweep; - license = licenses.mit; - maintainers = with maintainers; [ pSub ]; - }; - }; + git-sweep = callPackage ../development/python-modules/git-sweep { }; glances = callPackage ../development/python-modules/glances { }; |