python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / yamlpath / default.nix
blob55e86e42da4a2127cab501168bd37deb1e8a2644
1 { lib
2 , fetchFromGitHub
3 , hiera-eyaml
4 , python3
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "yamlpath";
9   version = "3.6.9";
10   format = "setuptools";
12   src = fetchFromGitHub {
13     owner = "wwkimball";
14     repo = pname;
15     rev = "refs/tags/v${version}";
16     sha256 = "sha256-0r1jlDWlYPIjUEudHbwt324rt0H8K3PUb7RILoxNNnw=";
17   };
19   propagatedBuildInputs = with python3.pkgs; [
20     python-dateutil
21     ruamel-yaml
22   ];
24   checkInputs = with python3.pkgs; [
25     hiera-eyaml
26     mock
27     pytest-console-scripts
28     pytestCheckHook
29   ];
31   preCheck = ''
32     export PATH=$PATH:$out/bin
33   '';
35   pythonImportsCheck = [
36     "yamlpath"
37   ];
39   meta = with lib; {
40     description = "Command-line processors for YAML/JSON/Compatible data";
41     homepage = "https://github.com/wwkimball/yamlpath";
42     longDescription = ''
43       Command-line get/set/merge/validate/scan/convert/diff processors for YAML/JSON/Compatible data
44       using powerful, intuitive, command-line friendly syntax
45      '';
46     license = licenses.isc;
47     maintainers = with maintainers; [ Flakebi ];
48   };