Skip to content

Commit

Permalink
pythonPackages.ConfigArgParse: 0.9.3 -> 0.12.0, refactor, move to pyt…
Browse files Browse the repository at this point in the history
…hon-modules

- fetch with `fetchPypi`
- add license, description and myself as maintainer

(cherry picked from commit c122dad)

Also adds name attribute as the pname feature for python derivations was
introduced after 17.09.
  • Loading branch information
WilliButz authored and fpletz committed Nov 17, 2017
1 parent b2af4e9 commit a2845aa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/configargparse/default.nix
@@ -0,0 +1,22 @@
{ stdenv, lib, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
pname = "ConfigArgParse";
version = "0.12.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0fgkiqh6r3rbkdq3k8c48m85g52k96686rw3a6jg4lcncrkpvk98";
};

# no tests in tarball
doCheck = false;

meta = with lib; {
description = "A drop-in replacement for argparse";
homepage = https://github.com/zorro3/ConfigArgParse;
license = licenses.mit;
maintainer = [ maintainers.willibutz ];
};
}
23 changes: 1 addition & 22 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -9287,28 +9287,7 @@ in {
buildInputs = with self; [ nose ];
};

ConfigArgParse = buildPythonPackage rec {
name = "ConfigArgParse-${version}";
version = "0.9.3";

src = pkgs.fetchurl {
url = "mirror://pypi/C/ConfigArgParse/ConfigArgParse-${version}.tar.gz";
sha256 = "0a984pvv7370yz7zbkl6s6i7yyl9myahx0m9jkjvg3hz5q8mf70l";
};

# no tests in tarball
doCheck = false;
propagatedBuildInputs = with self; [

];
buildInputs = with self; [

];

meta = with stdenv.lib; {
homepage = "https://github.com/zorro3/ConfigArgParse";
};
};
ConfigArgParse = callPackage ../development/python-modules/configargparse { };

jsonschema = callPackage ../development/python-modules/jsonschema { };

Expand Down

0 comments on commit a2845aa

Please sign in to comment.