mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
pythonPackages.compiledb: init at 0.10.1
This commit is contained in:
parent
7cce13c5aa
commit
16c665911f
42
pkgs/development/python-modules/compiledb/default.nix
Normal file
42
pkgs/development/python-modules/compiledb/default.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest
|
||||||
|
, bashlex
|
||||||
|
, click
|
||||||
|
, shutilwhich
|
||||||
|
, gcc
|
||||||
|
, coreutils
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "compiledb";
|
||||||
|
version = "0.10.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nickdiego";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0qricdgqzry7j3rmgwyd43av3c2kxpzkh6f9zcqbzrjkn78qbpd4";
|
||||||
|
};
|
||||||
|
|
||||||
|
# fix the tests
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace tests/data/multiple_commands_oneline.txt \
|
||||||
|
--replace /bin/echo ${coreutils}/bin/echo
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest gcc coreutils ];
|
||||||
|
propagatedBuildInputs = [ click bashlex shutilwhich ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Tool for generating Clang's JSON Compilation Database files";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
homepage = https://github.com/nickdiego/compiledb;
|
||||||
|
maintainers = with maintainers; [ multun ];
|
||||||
|
};
|
||||||
|
}
|
@ -540,6 +540,8 @@ in {
|
|||||||
|
|
||||||
cocotb = callPackage ../development/python-modules/cocotb { };
|
cocotb = callPackage ../development/python-modules/cocotb { };
|
||||||
|
|
||||||
|
compiledb = callPackage ../development/python-modules/compiledb { };
|
||||||
|
|
||||||
connexion = callPackage ../development/python-modules/connexion { };
|
connexion = callPackage ../development/python-modules/connexion { };
|
||||||
|
|
||||||
cozy = callPackage ../development/python-modules/cozy { };
|
cozy = callPackage ../development/python-modules/cozy { };
|
||||||
|
Loading…
Reference in New Issue
Block a user