1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # tests
11 astropy,
12 numpy,
13 pillow,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "pyavm";
19 version = "0.9.6";
20 pyproject = true;
21
22 src = fetchPypi {
23 pname = "PyAVM";
24 inherit version;
25 hash = "sha256-s7eLPoAHDbY9tPt3RA5zJg+NuTtVV/SqpUUR3NrG8m0=";
26 };
27
28 nativeBuildInputs = [
29 setuptools
30 setuptools-scm
31 ];
32
33 nativeCheckInputs = [
34 astropy
35 numpy
36 pillow
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "pyavm" ];
41
42 meta = with lib; {
43 description = "Simple pure-python AVM meta-data handling";
44 homepage = "https://astrofrog.github.io/pyavm/";
45 license = licenses.mit;
46 maintainers = with maintainers; [ smaret ];
47 };
48}