pythonPackages.measurement: now python3 only

Upstream has dropped python2 support and updated their build dependencies as of
the 3.0 version; see here for changelog:
https://github.com/coddingtonbear/python-measurement/releases

Co-Authored-By: Jon <jonringer@users.noreply.github.com>

authored by Benjamin Hipple Jon and committed by Jon eed30dfa aafb982e

+16 -5
+16 -5
pkgs/development/python-modules/measurement/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage, pbr, six, sympy }: 2 3 buildPythonPackage rec { 4 pname = "measurement"; 5 version = "3.2.0"; 6 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "352b20f7f0e553236af7c5ed48d091a51cf26061c1a063f46b31706ff7c0d57a"; 10 }; 11 12 - propagatedBuildInputs = [ pbr six sympy ]; 13 14 meta = with lib; { 15 description = "Use and manipulate unit-aware measurement objects in Python";
··· 1 + { lib, fetchFromGitHub, buildPythonPackage, isPy3k 2 + , sympy, pytest, pytestrunner, sphinx, setuptools_scm }: 3 4 buildPythonPackage rec { 5 pname = "measurement"; 6 version = "3.2.0"; 7 8 + disabled = !isPy3k; 9 + 10 + src = fetchFromGitHub { 11 + owner = "coddingtonbear"; 12 + repo = "python-measurement"; 13 + rev = version; 14 + sha256 = "1mk9qg1q4cnnipr6xa72i17qvwwhz2hd8p4vlsa9gdzrcv4vr8h9"; 15 }; 16 17 + postPatch = '' 18 + sed -i 's|use_scm_version=True|version="${version}"|' setup.py 19 + ''; 20 + 21 + checkInputs = [ pytest pytestrunner ]; 22 + nativeBuildInputs = [ sphinx setuptools_scm ]; 23 + propagatedBuildInputs = [ sympy ]; 24 25 meta = with lib; { 26 description = "Use and manipulate unit-aware measurement objects in Python";