blob: 64e1d6648e37610e541600efc68279a32cedc627 (
plain)
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
|
{
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "datastar-py";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "starfederation";
repo = "datastar-python";
tag = "v${finalAttrs.version}";
hash = "sha256-79pdSzHwkF8JX3rF5PIEvx//rKRvX3H1B2382Wfbm9U=";
};
build-system = [ hatchling ];
pythonImportsCheck = [ "datastar_py" ];
nativeCheckInputs = [
pytestCheckHook
];
# tests were only added after 1.0.0
# TODO enable after update
doCheck = false;
meta = {
changelog = "https://github.com/starfederation/datastar-python/releases/tag/${finalAttrs.src.tag}";
description = "Helper functions and classes for the Datastar library";
homepage = "https://github.com/starfederation/datastar-python";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})
|