Merge pull request #37950 from Ma27/fix-mrbob

pythonPackages.mrbob: fix build
This commit is contained in:
Robert Schütz 2018-03-31 16:57:06 +02:00 committed by GitHub
commit d3b9cabd6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 24 deletions

View File

@ -0,0 +1,28 @@
{ buildPythonPackage, stdenv, glibcLocales, mock, nose, isPy3k, argparse, jinja2, six
, fetchPypi, lib
}:
buildPythonPackage rec {
pname = "mrbob";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "6737eaf98aaeae85e07ebef844ee5156df2f06a8b28d7c3dcb056f811c588121";
};
disabled = isPy3k;
checkInputs = [ nose glibcLocales mock ];
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests
'';
propagatedBuildInputs = [ argparse jinja2 six ];
meta = with stdenv.lib; {
homepage = https://github.com/domenkozar/mr.bob;
description = "A tool to generate code skeletons from templates";
license = licenses.bsd3;
};
}

View File

@ -9848,30 +9848,7 @@ in {
};
mrbob = buildPythonPackage rec {
name = "mrbob-${version}";
version = "0.1.2";
src = pkgs.fetchurl {
url = "mirror://pypi/m/mr.bob/mr.bob-${version}.tar.gz";
sha256 = "6737eaf98aaeae85e07ebef844ee5156df2f06a8b28d7c3dcb056f811c588121";
};
buildInputs = [ pkgs.glibcLocales self.mock ];
disabled = isPy3k;
LC_ALL="en_US.UTF-8";
propagatedBuildInputs = with self; [ argparse jinja2 six ] ++
(optionals isPy26 [ importlib ordereddict ]);
meta = {
homepage = https://github.com/domenkozar/mr.bob.git;
description = "A tool to generate code skeletons from templates";
};
};
mrbob = callPackage ../development/python-modules/mrbob {};
msgpack = callPackage ../development/python-modules/msgpack {};