blob: 4107badf2fc2a5b81f44d7c3eaef638d215e483d (
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
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
rustPlatform,
nix-update-script,
}:
buildPythonPackage rec {
pname = "pyaskalono";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kumekay";
repo = "pyaskalono";
tag = "v${version}";
hash = "sha256-gNQCtubPs8XjE+ZTuTTzZGkxOhK3/Fv3lDLparaUdaQ=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-rQP6So9tG/9cjB588v+6lp2h+0SjaiWPhKrSXgDYugE=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "askalono" ];
meta = {
description = "Python wrapper for askalono";
homepage = "https://github.com/kumekay/pyaskalono/";
changelog = "https://github.com/kumekay/pyaskalono/releases/tag/v${version}";
license = [ lib.licenses.asl20 ];
maintainers = with lib.maintainers; [ erictapen ];
};
}
|