1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # tests
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "sciform";
16 version = "0.39.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "jagerber48";
21 repo = "sciform";
22 tag = version;
23 hash = "sha256-t43v3xnZap6NayzqBVvw2PzPzHZ5QPSEO5aRzS8AKKE=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "sciform"
37 ];
38
39 meta = {
40 description = "Package for formatting numbers into scientific formatted strings";
41 homepage = "https://sciform.readthedocs.io/en/stable/";
42 downloadPage = "https://github.com/jagerber48/sciform";
43 changelog = "https://github.com/jagerber48/sciform/blob/${src.tag}/CHANGELOG.rst";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ doronbehar ];
46 };
47}