depot/third_party/nixpkgs/pkgs/development/python-modules/coordinates/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
851 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "coordinates";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "clbarnes";
repo = "coordinates";
rev = "refs/tags/v${version}";
hash = "sha256-S/AmH5FinTpHFFcrGAUSyjfqoIgq14QlHk9CnUkqCv4=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "coordinates" ];
meta = with lib; {
description = "Convenience class for doing maths with explicit coordinates";
homepage = "https://github.com/clbarnes/coordinates";
changelog = "https://github.com/clbarnes/coordinates/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}