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