mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
python311Packages.nipreps-version: init at 1.0.4
This commit is contained in:
46
pkgs/development/python-modules/nipreps-versions/default.nix
Normal file
46
pkgs/development/python-modules/nipreps-versions/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user