plasma-panel-colorizer: 2.1.0 -> 2.3.0 (#380410)
[NixPkgs.git] / pkgs / by-name / bk / bkyml / package.nix
blob01135cb948403ec8a509fd2f981a69203720965b
2   lib,
3   python3,
4   fetchPypi,
5 }:
7 with python3.pkgs;
9 buildPythonApplication rec {
10   pname = "bkyml";
11   version = "1.4.3";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "01kpx35572mp4xl2fjyvfk39jfgfjcyzymbifk76891kaqkjb7r9";
16   };
18   # The pyscaffold is not a runtime dependency but just a python project bootstrapping tool. Thus,
19   # instead of implement this package in nix we remove a dependency on it and fix up the version
20   # of the package, that has been affected by the pyscaffold package dependency removal.
21   postPatch = ''
22     substituteInPlace setup.py \
23       --replace "['pyscaffold>=3.0a0,<3.1a0'] + " "" \
24       --replace "use_pyscaffold=True"  ""
25     substituteInPlace src/bkyml/skeleton.py --replace \
26         "from bkyml import __version__" \
27         "__version__ = \"${version}\""
28   '';
30   # Don't run tests because they are broken when run within
31   # buildPythonApplication for reasons I don't quite understand.
32   doCheck = false;
34   pythonImportsCheck = [ "bkyml" ];
36   propagatedBuildInputs = [
37     ruamel-yaml
38     setuptools
39   ];
41   meta = with lib; {
42     homepage = "https://github.com/joscha/bkyml";
43     description = "CLI tool to generate a pipeline.yaml file for Buildkite on the fly";
44     license = licenses.mit;
45     maintainers = with maintainers; [ olebedev ];
46   };