mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
871 B
Nix
32 lines
871 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k
|
|
, sympy, pytest, pytest-runner, sphinx, setuptools-scm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "measurement";
|
|
version = "3.2.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coddingtonbear";
|
|
repo = "python-measurement";
|
|
rev = version;
|
|
sha256 = "1mk9qg1q4cnnipr6xa72i17qvwwhz2hd8p4vlsa9gdzrcv4vr8h9";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's|use_scm_version=True|version="${version}"|' setup.py
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytest pytest-runner ];
|
|
nativeBuildInputs = [ sphinx setuptools-scm ];
|
|
propagatedBuildInputs = [ sympy ];
|
|
|
|
meta = with lib; {
|
|
description = "Use and manipulate unit-aware measurement objects in Python";
|
|
homepage = "https://github.com/coddingtonbear/python-measurement";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
};
|
|
}
|