depot/third_party/nixpkgs/pkgs/development/python-modules/node-semver/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

34 lines
761 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "node-semver";
version = "0.9.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "podhmo";
repo = "python-node-semver";
rev = "refs/tags/${version}";
hash = "sha256-Ncl+RUvy9G9lF3EzLz2HfiDB02tEgAlZ34Wbn4mlF6Y=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nodesemver" ];
meta = with lib; {
changelog = "https://github.com/podhmo/python-node-semver/blob/${version}/CHANGES.txt";
description = "Port of node-semver";
homepage = "https://github.com/podhmo/python-semver";
license = licenses.mit;
maintainers = [ ];
};
}