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
32
pkgs/development/python-modules/zconfig/default.nix
Normal file
32
pkgs/development/python-modules/zconfig/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, zope_testrunner
|
||||
, manuel
|
||||
, docutils
|
||||
, pygments
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ZConfig";
|
||||
version = "3.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-oo6VoK4zV5V0fsytNbLLcI831Ex/Ml4qyyAemDMLFuU=";
|
||||
};
|
||||
|
||||
patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
|
||||
|
||||
buildInputs = [ manuel docutils ];
|
||||
propagatedBuildInputs = [ zope_testrunner ];
|
||||
checkInputs = [ pygments ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Structured Configuration Library";
|
||||
homepage = "https://pypi.python.org/pypi/ZConfig";
|
||||
license = licenses.zpl20;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
From 43fd87037be1c98b6afa20f179f2e2d8ef5491ba Mon Sep 17 00:00:00 2001
|
||||
From: Will Dietz <w@wdtz.org>
|
||||
Date: Fri, 20 Jul 2018 10:07:22 -0500
|
||||
Subject: [PATCH] remove test that fails w/musl (setlocale() always succeeds)
|
||||
|
||||
---
|
||||
ZConfig/tests/test_datatypes.py | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/ZConfig/tests/test_datatypes.py b/ZConfig/tests/test_datatypes.py
|
||||
index 7c8d80c..addecd2 100644
|
||||
--- a/ZConfig/tests/test_datatypes.py
|
||||
+++ b/ZConfig/tests/test_datatypes.py
|
||||
@@ -229,7 +229,6 @@ class DatatypeTestCase(unittest.TestCase):
|
||||
convert = self.types.get("locale")
|
||||
# Python supports "C" even when the _locale module is not available
|
||||
self.assertEqual(convert("C"), "C")
|
||||
- self.assertRaises(ValueError, convert, "locale-does-not-exist")
|
||||
|
||||
def test_datatype_port(self):
|
||||
convert = self.types.get("port-number")
|
||||
--
|
||||
2.18.0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue