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

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, pythonOlder
, inform
, parametrize-from-file
, setuptools
, voluptuous
, quantiphy-eval
, rkm-codes
}:
buildPythonPackage rec {
pname = "quantiphy";
version = "2.20";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "quantiphy";
rev = "refs/tags/v${version}";
hash = "sha256-QXCs93plNSVNiCLEoXx2raH6EbH1rXyjvpBfl+8eXjc=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
quantiphy-eval
rkm-codes
];
nativeCheckInputs = [
inform
parametrize-from-file
pytestCheckHook
setuptools
voluptuous
];
pythonImportsCheck = [
"quantiphy"
];
meta = with lib; {
description = "Module for physical quantities (numbers with units)";
homepage = "https://quantiphy.readthedocs.io";
changelog = "https://github.com/KenKundert/quantiphy/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}