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
34
pkgs/development/python-modules/awesome-slugify/default.nix
Normal file
34
pkgs/development/python-modules/awesome-slugify/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, unidecode, regex, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awesome-slugify";
|
||||
version = "1.6.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'Unidecode>=0.04.14,<0.05' 'Unidecode>=0.04.14'
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./slugify_filename_test.patch # fixes broken test by new unidecode
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ unidecode regex ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dimka665/awesome-slugify";
|
||||
description = "Python flexible slugify function";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git i/slugify/tests.py w/slugify/tests.py
|
||||
index 4c9fa1c..3e14328 100644
|
||||
--- i/slugify/tests.py
|
||||
+++ w/slugify/tests.py
|
||||
@@ -57,7 +57,7 @@ class PredefinedSlugifyTestCase(unittest.TestCase):
|
||||
self.assertEqual(slugify_url('The Über article'), 'uber-article')
|
||||
|
||||
def test_slugify_filename(self):
|
||||
- self.assertEqual(slugify_filename(u'Дrаft №2.txt'), u'Draft_2.txt')
|
||||
+ self.assertEqual(slugify_filename(u'Дrаft №2.txt'), u'Draft_No._2.txt')
|
||||
|
||||
|
||||
class ToLowerTestCase(unittest.TestCase):
|
||||
Loading…
Add table
Add a link
Reference in a new issue