Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 47 lines 845 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pythonOlder 6, funcsigs 7, setuptools_scm 8# Check Inputs 9, pytestCheckHook 10, numpy 11, matplotlib 12, uncertainties 13}: 14 15buildPythonPackage rec { 16 pname = "pint"; 17 version = "0.11"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "Pint"; 22 sha256 = "0kfgnmcs6z9ndhzvwg2xzhpwxgyyagdsdz5dns1jy40fa1q113rh"; 23 }; 24 25 disabled = pythonOlder "3.6"; 26 27 propagatedBuildInputs = [ 28 setuptools_scm 29 ] ++ lib.optional isPy27 funcsigs; 30 31 # Test suite explicitly requires pytest 32 checkInputs = [ 33 pytestCheckHook 34 numpy 35 matplotlib 36 uncertainties 37 ]; 38 dontUseSetuptoolsCheck = true; 39 40 meta = with lib; { 41 description = "Physical quantities module"; 42 license = licenses.bsd3; 43 homepage = "https://github.com/hgrecco/pint/"; 44 maintainers = [ maintainers.costrouc ]; 45 }; 46 47}