mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
pythonPackages.darcsver: Move to own file
This commit is contained in:
parent
4cf18fc2c5
commit
6794cb750c
29
pkgs/development/python-modules/darcsver/default.nix
Normal file
29
pkgs/development/python-modules/darcsver/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "darcsver";
|
||||
version = "1.7.4";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1yb1c3jxqvy4r3qiwvnb86qi5plw6018h15r3yk5ji3nk54qdcb6";
|
||||
};
|
||||
|
||||
buildInputs = [ mock ];
|
||||
|
||||
# Note: We don't actually need to provide Darcs as a build input.
|
||||
# Darcsver will DTRT when Darcs isn't available. See news.gmane.org
|
||||
# http://thread.gmane.org/gmane.comp.file-systems.tahoe.devel/3200 for a
|
||||
# discussion.
|
||||
|
||||
# AttributeError: 'module' object has no attribute 'test_darcsver'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Darcsver, generate a version number from Darcs history";
|
||||
homepage = https://pypi.python.org/pypi/darcsver;
|
||||
license = "BSD-style";
|
||||
};
|
||||
}
|
|
@ -1999,33 +1999,7 @@ in {
|
|||
|
||||
cssutils = callPackage ../development/python-modules/cssutils { };
|
||||
|
||||
darcsver = buildPythonPackage (rec {
|
||||
name = "darcsver-1.7.4";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/d/darcsver/${name}.tar.gz";
|
||||
sha256 = "1yb1c3jxqvy4r3qiwvnb86qi5plw6018h15r3yk5ji3nk54qdcb6";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ self.mock ];
|
||||
|
||||
# Note: We don't actually need to provide Darcs as a build input.
|
||||
# Darcsver will DTRT when Darcs isn't available. See news.gmane.org
|
||||
# http://thread.gmane.org/gmane.comp.file-systems.tahoe.devel/3200 for a
|
||||
# discussion.
|
||||
|
||||
# AttributeError: 'module' object has no attribute 'test_darcsver'
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Darcsver, generate a version number from Darcs history";
|
||||
|
||||
homepage = https://pypi.python.org/pypi/darcsver;
|
||||
|
||||
license = "BSD-style";
|
||||
};
|
||||
});
|
||||
darcsver = callPackage ../development/python-modules/darcsver { };
|
||||
|
||||
dask = callPackage ../development/python-modules/dask { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue