evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / single-source / default.nix
blob809493dc0a300efc286eed27e72b4e58dfff1657
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   toml,
7   pytest-mock,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "single-source";
14   version = "0.4.0";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "rabbit72";
21     repo = "single-source";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-4l9ochlscQoWJVkYN8Iq2DsiU7qoOf7nUFYgBOebK/g=";
24   };
26   build-system = [ poetry-core ];
28   nativeCheckInputs = [
29     toml
30     pytest-mock
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [ "single_source" ];
36   meta = {
37     description = "Access to the project version in Python code for PEP 621-style projects";
38     homepage = "https://github.com/rabbit72/single-source";
39     changelog = "https://github.com/rabbit72/single-source/releases/tag/v${version}";
40     license = lib.licenses.mit;
41     maintainers = with lib.maintainers; [ nickcao ];
42   };