blob: 62d9e3324f86f8ca38f2472288d71d5c603c7fd1 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
toml,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "single-source";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rabbit72";
repo = "single-source";
tag = "v${version}";
hash = "sha256-4l9ochlscQoWJVkYN8Iq2DsiU7qoOf7nUFYgBOebK/g=";
};
build-system = [ poetry-core ];
nativeCheckInputs = [
toml
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "single_source" ];
meta = {
description = "Access to the project version in Python code for PEP 621-style projects";
homepage = "https://github.com/rabbit72/single-source";
changelog = "https://github.com/rabbit72/single-source/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickcao ];
};
}
|