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>
This commit is contained in:
parent
aafb982e03
commit
eed30dfa5c
@ -1,15 +1,26 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, pbr, six, sympy }:
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k
|
||||
, sympy, pytest, pytestrunner, sphinx, setuptools_scm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "measurement";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "352b20f7f0e553236af7c5ed48d091a51cf26061c1a063f46b31706ff7c0d57a";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coddingtonbear";
|
||||
repo = "python-measurement";
|
||||
rev = version;
|
||||
sha256 = "1mk9qg1q4cnnipr6xa72i17qvwwhz2hd8p4vlsa9gdzrcv4vr8h9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pbr six sympy ];
|
||||
postPatch = ''
|
||||
sed -i 's|use_scm_version=True|version="${version}"|' setup.py
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
nativeBuildInputs = [ sphinx setuptools_scm ];
|
||||
propagatedBuildInputs = [ sympy ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Use and manipulate unit-aware measurement objects in Python";
|
||||
|
Loading…
Reference in New Issue
Block a user