1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 simplejson,
6 six,
7 typechecks,
8}:
9
10buildPythonPackage {
11 pname = "serializable";
12 version = "unstable-2023-07-13";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "iskandr";
17 repo = "serializable";
18 # See https://github.com/iskandr/serializable/issues/7. As of 2023-07-13,
19 # they do no have version tags.
20 rev = "ed309a6f8f2590b525fc0f93c00549223c8c944f";
21 hash = "sha256-AXlgIc1B7bkR+joXn6ZSxk/t848CWlgVZp8WIsSZFKQ=";
22 };
23
24 propagatedBuildInputs = [
25 simplejson
26 six
27 typechecks
28 ];
29
30 pythonImportsCheck = [ "serializable" ];
31
32 meta = with lib; {
33 description = "Base class with serialization methods for user-defined Python objects";
34 homepage = "https://github.com/iskandr/serializable";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ samuela ];
37 };
38}