nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 909 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 pytestCheckHook, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "quantities"; 13 version = "0.16.4"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "python-quantities"; 18 repo = "python-quantities"; 19 tag = "v${version}"; 20 hash = "sha256-a+UtNvcnQr4z87tpidx99u46M2H+EKtQ1EzIG5zQnmI="; 21 }; 22 23 build-system = [ 24 setuptools 25 setuptools-scm 26 ]; 27 28 dependencies = [ numpy ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "quantities" ]; 33 34 meta = { 35 description = "Quantities is designed to handle arithmetic and conversions of physical quantities"; 36 homepage = "https://python-quantities.readthedocs.io/"; 37 changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt"; 38 license = lib.licenses.bsd2; 39 maintainers = [ ]; 40 }; 41}