From cba82441a12e7002fcce7b5e8be9a25686750eef Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 10 Mar 2018 09:29:05 +0100 Subject: [PATCH 1/2] polib: move to own file and fix homepage --- .../python-modules/polib/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------------ 2 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/polib/default.nix diff --git a/pkgs/development/python-modules/polib/default.nix b/pkgs/development/python-modules/polib/default.nix new file mode 100644 index 0000000000000..3b2ee20c8251c --- /dev/null +++ b/pkgs/development/python-modules/polib/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "polib"; + version = "1.0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "16klwlswfbgmkzrra80fgzhic9447pk3mnr75r2fkz72bkvpcclb"; + }; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + description = "A library to manipulate gettext files (po and mo files)"; + homepage = https://bitbucket.org/izi/polib/; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa74176631594..9e2778a70115d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12556,25 +12556,7 @@ in { plumbum = callPackage ../development/python-modules/plumbum { }; - - polib = buildPythonPackage rec { - name = "polib-${version}"; - version = "1.0.4"; - - src = pkgs.fetchurl { - url = "http://bitbucket.org/izi/polib/downloads/${name}.tar.gz"; - sha256 = "16klwlswfbgmkzrra80fgzhic9447pk3mnr75r2fkz72bkvpcclb"; - }; - - # error: invalid command 'test' - doCheck = false; - - meta = { - description = "A library to manipulate gettext files (po and mo files)"; - homepage = "http://bitbucket.org/izi/polib/"; - license = licenses.mit; - }; - }; + polib = callPackage ../development/python-modules/polib {}; posix_ipc = buildPythonPackage rec { name = "posix_ipc-${version}"; From 04c6ddfc7311688d63035b16168b742faba68200 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 10 Mar 2018 09:59:29 +0100 Subject: [PATCH 2/2] polib: 1.0.4 -> 1.1.0 --- pkgs/development/python-modules/polib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/polib/default.nix b/pkgs/development/python-modules/polib/default.nix index 3b2ee20c8251c..965156424a0d0 100644 --- a/pkgs/development/python-modules/polib/default.nix +++ b/pkgs/development/python-modules/polib/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "polib"; - version = "1.0.4"; + version = "1.1.0"; src = fetchPypi { inherit pname version; - sha256 = "16klwlswfbgmkzrra80fgzhic9447pk3mnr75r2fkz72bkvpcclb"; + sha256 = "0aikb8gcarhifn3sadrbbs5czagih9hjv250gsrgy9v1d49pvn7s"; }; # error: invalid command 'test'