Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nipreps-versions / default.nix
blob1c54ab9d905e4f3a54bab9e2ce7abead9f70ba6f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , flit-scm
6 , packaging
7 , setuptools-scm
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "nipreps-versions";
13   version = "1.0.4";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "nipreps";
20     repo = "version-schemes";
21     rev = "refs/tags/${version}";
22     hash = "sha256-B2wtLurzgk59kTooH51a2dewK7aEyA0dAm64Wp+tqhM=";
23   };
25   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
27   nativeBuildInputs = [
28     flit-scm
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     packaging
34   ];
36   nativeCheckInputs = [ pytestCheckHook ];
37   pythonImportsCheck = [ "nipreps_versions" ];
39   meta = with lib; {
40     description = "Setuptools_scm plugin for nipreps version schemes";
41     homepage = "https://github.com/nipreps/version-schemes";
42     changelog = "https://github.com/nipreps/version-schemes/blob/${src.rev}/CHANGES.md";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ bcdarwin ];
45   };