Merge pull request #193032 from cpcloud/hatch-nodejs-version

This commit is contained in:
Sandro 2022-09-28 19:59:09 +02:00 committed by GitHub
commit 7cf46dbcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, hatchling
}:
buildPythonPackage rec {
pname = "hatch-nodejs-version";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "agoose77";
repo = "hatch-nodejs-version";
rev = "v${version}";
sha256 = "sha256-TBvqXjka8poQ8xxQ/H1hFYRLqnP1024uan1d9b95ags=";
};
propagatedBuildInputs = [
hatchling
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"hatch_nodejs_version"
];
meta = with lib; {
description = "Plugins for dealing with NodeJS versions";
homepage = "https://github.com/agoose77/hatch-nodejs-version";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}

View File

@ -4147,6 +4147,8 @@ in {
hatch-vcs = callPackage ../development/python-modules/hatch-vcs { };
hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { };
haversine = callPackage ../development/python-modules/haversine { };
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };