075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
48 lines
915 B
Nix
48 lines
915 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
isPy3k,
|
|
flit-core,
|
|
flit-scm,
|
|
sympy,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
sphinx,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "measurement";
|
|
version = "4.0a8";
|
|
pyproject = true;
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coddingtonbear";
|
|
repo = "python-measurement";
|
|
tag = version;
|
|
hash = "sha256-QxXxx9Jbx7ykQFaw/3S6ANPUmw3mhvSa4np6crsfVtE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
flit-scm
|
|
sphinx
|
|
];
|
|
|
|
propagatedBuildInputs = [ sympy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
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 = lib.licenses.mit;
|
|
};
|
|
}
|