1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pip-tools,
6 pytestCheckHook,
7 setuptools-scm,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "databackend";
13 version = "0.0.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "machow";
18 repo = "databackend";
19 tag = "v${version}";
20 hash = "sha256-M5Nm33Vae6FDy4aurru4CeHjeNxyZZnqzpdkqNEvrm0=";
21 };
22
23 build-system = [
24 setuptools
25 setuptools-scm
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 pip-tools
31 ];
32
33 pythonImportsCheck = [ "databackend" ];
34
35 meta = {
36 description = "Module to register a subclass, without needing to import the subclass itself";
37 homepage = "https://github.com/machow/databackend";
38 changelog = "https://github.com/machow/databackend/releases/tag/${src.tag}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}