python3Packages.measurement: 3.2.2 -> 4.0a8 (#356137)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "measurement";
|
||||
version = "3.2.2";
|
||||
version = "4.0a8";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = !isPy3k;
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "coddingtonbear";
|
||||
repo = "python-measurement";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ULId0W10FaAtSgVY5ctQL3FPETVr+oq6TKWd/W53viM=";
|
||||
hash = "sha256-QxXxx9Jbx7ykQFaw/3S6ANPUmw3mhvSa4np6crsfVtE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -39,11 +39,11 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Use and manipulate unit-aware measurement objects in Python";
|
||||
homepage = "https://github.com/coddingtonbear/python-measurement";
|
||||
changelog = "https://github.com/coddingtonbear/python-measurement/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bhipple ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bhipple ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,6 +55,11 @@ buildPythonPackage rec {
|
||||
postPatch = ''
|
||||
# Remove overly restrictive version constraints
|
||||
sed -i -e "s/>=.*//" requirements.txt
|
||||
|
||||
# https://github.com/coddingtonbear/python-measurement/pull/8
|
||||
substituteInPlace tests/test_client.py \
|
||||
--replace-fail "Weight" "Mass" \
|
||||
--replace-fail '"Mass"' '"Weight"'
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
@@ -64,11 +69,11 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "myfitnesspal" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python module to access meal tracking data stored in MyFitnessPal";
|
||||
mainProgram = "myfitnesspal";
|
||||
homepage = "https://github.com/coddingtonbear/python-myfitnesspal";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bhipple ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bhipple ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user