pythonPackages.mozsvc: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 18:23:51 -04:00 committed by Frederik Rietdijk
parent 4860875eaa
commit 99ec6e3c08
2 changed files with 35 additions and 23 deletions

View File

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchurl
, pyramid
, simplejson
, konfig
}:
buildPythonPackage rec {
pname = "mozsvc";
version = "0.8";
src = fetchgit {
url = https://github.com/mozilla-services/mozservices.git;
rev = "refs/tags/${version}";
sha256 = "1zci2ikk83mf7va88c83dr6snfh4ddjqw0lsg3y29qk5nxf80vx2";
};
patches = stdenv.lib.singleton (fetchurl {
url = https://github.com/nbp/mozservices/commit/f86c0b0b870cd8f80ce90accde9e16ecb2e88863.diff;
sha256 = "1lnghx821f6dqp3pa382ka07cncdz7hq0mkrh44d0q3grvrlrp9n";
});
doCheck = false; # lazy packager
propagatedBuildInputs = [ pyramid simplejson konfig ];
meta = with stdenv.lib; {
homepage = https://github.com/mozilla-services/mozservices;
description = "Various utilities for Mozilla apps";
license = licenses.mpl20;
};
}

View File

@ -2820,29 +2820,7 @@ in {
mox = callPackage ../development/python-modules/mox { };
mozsvc = buildPythonPackage rec {
name = "mozsvc-${version}";
version = "0.8";
src = pkgs.fetchgit {
url = https://github.com/mozilla-services/mozservices.git;
rev = "refs/tags/${version}";
sha256 = "1zci2ikk83mf7va88c83dr6snfh4ddjqw0lsg3y29qk5nxf80vx2";
};
patches = singleton (pkgs.fetchurl {
url = https://github.com/nbp/mozservices/commit/f86c0b0b870cd8f80ce90accde9e16ecb2e88863.diff;
sha256 = "1lnghx821f6dqp3pa382ka07cncdz7hq0mkrh44d0q3grvrlrp9n";
});
doCheck = false; # lazy packager
propagatedBuildInputs = with self; [ pyramid simplejson konfig ];
meta = {
homepage = https://github.com/mozilla-services/mozservices;
description = "Various utilities for Mozilla apps";
};
};
mozsvc = callPackage ../development/python-modules/mozsvc { };
mpmath = buildPythonPackage rec {
name = "mpmath-0.19";