ps3-disc-dumper: 3.2.3 -> 4.2.5, .NET 6 -> 9 (#361506)
[NixPkgs.git] / pkgs / development / python-modules / jsonable / default.nix
blob705ff95a2d770d24c79a5dbd05643efd3ad0315e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   fetchpatch2,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "jsonable";
12   version = "0.3.1";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "halfak";
17     repo = "python-jsonable";
18     rev = "refs/tags/${version}";
19     hash = "sha256-3FIzG2djSZOPDdoYeKqs3obQjgHrFtyp0sdBwZakkHA=";
20   };
22   patches = [
23     # https://github.com/halfak/python-jsonable/pull/2
24     (fetchpatch2 {
25       name = "eq-to-assert.patch";
26       url = "https://github.com/halfak/python-jsonable/pull/2/commits/335e61bb4926e644aef983f7313793bf506d2463.patch";
27       hash = "sha256-tCVA0wG+UMyB6oaNf4nbZ2BPWkNumaGPcjP5VJKegBo=";
28     })
29   ];
31   build-system = [ setuptools ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "jsonable" ];
37   meta = {
38     description = "Provides an abstract base class and utilities for defining trivially JSONable python objects";
39     homepage = "https://github.com/halfak/python-jsonable";
40     license = lib.licenses.mit;
41     maintainers = with lib.maintainers; [ GaetanLepage ];
42   };