depot/third_party/nixpkgs/pkgs/development/python-modules/node-semver/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
779 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 = with maintainers; [ ];
};
}