blob: 705ff95a2d770d24c79a5dbd05643efd3ad0315e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
fetchpatch2,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonable";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "halfak";
repo = "python-jsonable";
rev = "refs/tags/${version}";
hash = "sha256-3FIzG2djSZOPDdoYeKqs3obQjgHrFtyp0sdBwZakkHA=";
};
patches = [
# https://github.com/halfak/python-jsonable/pull/2
(fetchpatch2 {
name = "eq-to-assert.patch";
url = "https://github.com/halfak/python-jsonable/pull/2/commits/335e61bb4926e644aef983f7313793bf506d2463.patch";
hash = "sha256-tCVA0wG+UMyB6oaNf4nbZ2BPWkNumaGPcjP5VJKegBo=";
})
];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonable" ];
meta = {
description = "Provides an abstract base class and utilities for defining trivially JSONable python objects";
homepage = "https://github.com/halfak/python-jsonable";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|