uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
31
pkgs/development/python-modules/measurement/default.nix
Normal file
31
pkgs/development/python-modules/measurement/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ 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
|
||||
'';
|
||||
|
||||
checkInputs = [ 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue