pythonPackages.ColanderAlchemy: refactor move to python-modules
This commit is contained in:
parent
e70a3c7599
commit
d0e058f669
35
pkgs/development/python-modules/colanderalchemy/default.nix
Normal file
35
pkgs/development/python-modules/colanderalchemy/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, unittest2
|
||||
, colander
|
||||
, sqlalchemy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ColanderAlchemy";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "11wcni2xmfmy001rj62q2pwf305vvngkrfm5c4zlwvgbvlsrvnnw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/stefanofontanelli/ColanderAlchemy/commit/b45fe35f2936a5ccb705e9344075191e550af6c9.patch";
|
||||
sha256 = "1kf278wjq49zd6fhpp55vdcawzdd107767shzfck522sv8gr6qvx";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ unittest2 ];
|
||||
propagatedBuildInputs = [ colander sqlalchemy ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Autogenerate Colander schemas based on SQLAlchemy models";
|
||||
homepage = https://github.com/stefanofontanelli/ColanderAlchemy;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
@ -1343,31 +1343,7 @@ in {
|
||||
# Backported version of the ConfigParser library of Python 3.3
|
||||
configparser = callPackage ../development/python-modules/configparser { };
|
||||
|
||||
ColanderAlchemy = buildPythonPackage rec {
|
||||
name = "ColanderAlchemy-${version}";
|
||||
version = "0.3.3";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/C/ColanderAlchemy/${name}.tar.gz";
|
||||
sha256 = "11wcni2xmfmy001rj62q2pwf305vvngkrfm5c4zlwvgbvlsrvnnw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/stefanofontanelli/ColanderAlchemy/commit/b45fe35f2936a5ccb705e9344075191e550af6c9.patch";
|
||||
sha256 = "1kf278wjq49zd6fhpp55vdcawzdd107767shzfck522sv8gr6qvx";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = with self; [ unittest2 ];
|
||||
propagatedBuildInputs = with self; [ colander sqlalchemy ];
|
||||
|
||||
meta = {
|
||||
description = "Autogenerate Colander schemas based on SQLAlchemy models";
|
||||
homepage = https://github.com/stefanofontanelli/ColanderAlchemy;
|
||||
license = licenses.mit;
|
||||
};
|
||||
};
|
||||
ColanderAlchemy = callPackage ../development/python-modules/colanderalchemy { };
|
||||
|
||||
conda = callPackage ../development/python-modules/conda { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user