1{ lib, buildPythonPackage, fetchPypi, isPy3k, mock }: 2 3buildPythonPackage rec { 4 pname = "darcsver"; 5 version = "1.7.4"; 6 7 disabled = isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1yb1c3jxqvy4r3qiwvnb86qi5plw6018h15r3yk5ji3nk54qdcb6"; 12 }; 13 14 buildInputs = [ mock ]; 15 16 # Note: We don't actually need to provide Darcs as a build input. 17 # Darcsver will DTRT when Darcs isn't available. See news.gmane.org 18 # http://thread.gmane.org/gmane.comp.file-systems.tahoe.devel/3200 for a 19 # discussion. 20 21 # AttributeError: 'module' object has no attribute 'test_darcsver' 22 doCheck = false; 23 24 meta = with lib; { 25 description = "Darcsver, generate a version number from Darcs history"; 26 homepage = "https://pypi.python.org/pypi/darcsver"; 27 license = "BSD-style"; 28 }; 29}