Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / buildbot / pkg.nix
blob4c17eb2b6e53fe0010744be80d4ec0992452058b
1 { lib, buildPythonPackage, fetchPypi, isPy3k, buildbot }:
3 buildPythonPackage rec {
4   pname = "buildbot-pkg";
5   inherit (buildbot) version;
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "0bv1qq4cf24cklxfqfnkhjb6w4xqcp3afdcan75n6v7mnwqxyyvr";
10   };
12   postPatch = ''
13     # Their listdir function filters out `node_modules` folders.
14     # Do we have to care about that with Nix...?
15     substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" ""
16   '';
18   # No tests
19   doCheck = false;
21   pythonImportsCheck = [ "buildbot_pkg" ];
23   disabled = !isPy3k;
25   meta = with lib; {
26     homepage = "https://buildbot.net/";
27     description = "Buildbot Packaging Helper";
28     maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ];
29     license = licenses.gpl2;
30   };