python311Packages.nipreps-version: init at 1.0.4

This commit is contained in:
Ben Darwin
2023-11-02 13:01:03 -04:00
parent d061a3c154
commit 43a00710a5
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit-scm
, packaging
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "nipreps-versions";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nipreps";
repo = "version-schemes";
rev = "refs/tags/${version}";
hash = "sha256-B2wtLurzgk59kTooH51a2dewK7aEyA0dAm64Wp+tqhM=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
flit-scm
setuptools-scm
];
propagatedBuildInputs = [
packaging
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nipreps_versions" ];
meta = with lib; {
description = "Setuptools_scm plugin for nipreps version schemes";
homepage = "https://github.com/nipreps/version-schemes";
changelog = "https://github.com/nipreps/version-schemes/blob/${src.rev}/CHANGES.md";
license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
};
}

View File

@@ -8363,6 +8363,8 @@ self: super: with self; {
ninja = callPackage ../development/python-modules/ninja { inherit (pkgs) ninja; };
nipreps-versions = callPackage ../development/python-modules/nipreps-versions { };
nipy = callPackage ../development/python-modules/nipy { };
nipype = callPackage ../development/python-modules/nipype {