evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / warlock / default.nix
blob5445631c4d153b29bf8689e04c569fa30f7526c8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   poetry-core,
7   jsonpatch,
8   jsonschema,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "warlock";
14   version = "2.0.1";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "bcwaldon";
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-HOCLzFYmOL/tCXT+NO/tCZuVXVowNEPP3g33ZYg4+6Q=";
24   };
26   postPatch = ''
27     sed -i '/--cov/d' pytest.ini
28   '';
30   nativeBuildInputs = [ poetry-core ];
32   propagatedBuildInputs = [
33     jsonpatch
34     jsonschema
35   ];
37   nativeCheckInputs = [ pytestCheckHook ];
39   disabledTests = [
40     # https://github.com/bcwaldon/warlock/issues/64
41     "test_recursive_models"
42   ];
44   pythonImportsCheck = [ "warlock" ];
46   meta = with lib; {
47     description = "Python object model built on JSON schema and JSON patch";
48     homepage = "https://github.com/bcwaldon/warlock";
49     license = licenses.asl20;
50     maintainers = [ ];
51   };