Merge pull request #91789 from lovesegfault/confuse-mediafile
python3Packages.{confuse,mediafile}: init
This commit is contained in:
commit
0b0760b5e0
27
pkgs/development/python-modules/confuse/default.nix
Normal file
27
pkgs/development/python-modules/confuse/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ buildPythonPackage
|
||||
, enum34
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
, pathlib
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "confuse";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-kvwEUcbiwnMqw2PQ9Z1+pgir3b7QYt2o6Y6ajJhs5GQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyyaml ] ++ lib.optionals isPy27 [ enum34 pathlib ] ;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Confuse is a configuration library for Python that uses YAML.";
|
||||
homepage = "https://github.com/beetbox/confuse";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lovesegfault ];
|
||||
};
|
||||
}
|
44
pkgs/development/python-modules/mediafile/default.nix
Normal file
44
pkgs/development/python-modules/mediafile/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ buildPythonPackage
|
||||
, enum34
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
, mutagen
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mediafile";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-o/tSAHu8FTr6LZoMHvegr9uCZovNLHS9KkP2U9y4uko=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mutagen six ] ++ lib.optional isPy27 enum34;
|
||||
|
||||
# NB: Remove in the next release
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/beetbox/mediafile/commit/0ff753d493a1a7f406cb3378545ffe2c85a9afa3.patch";
|
||||
sha256 = "sha256-AQ7YedoYPmLqt4a/odgghIKOY61i9YfA0To0RVFqlk8=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/beetbox/mediafile/commit/f0fb4e5111d9dfaa3b38d196ec41fcd237d97953.patch";
|
||||
sha256 = "sha256-5O6RiAqkQEz3Bvqjwwv/LOS33nSIBnT2H/vasGGVrpI=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/beetbox/mediafile/commit/d2fc3b59f77c515b02dfe7ad936f89264375d2b4.patch";
|
||||
sha256 = "sha256-SMH0XhCaKLDNB4M8VmZWfGuuelfY5xladZyQYtXtP18=";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MediaFile is a simple interface to the metadata tags for many audio file formats.";
|
||||
homepage = "https://github.com/beetbox/mediafile";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lovesegfault ];
|
||||
};
|
||||
}
|
@ -1332,6 +1332,8 @@ in {
|
||||
|
||||
confluent-kafka = callPackage ../development/python-modules/confluent-kafka { };
|
||||
|
||||
confuse = callPackage ../development/python-modules/confuse { };
|
||||
|
||||
connexion = callPackage ../development/python-modules/connexion { };
|
||||
|
||||
consonance = callPackage ../development/python-modules/consonance { };
|
||||
@ -3808,6 +3810,8 @@ in {
|
||||
|
||||
mechanize = callPackage ../development/python-modules/mechanize { };
|
||||
|
||||
mediafile = callPackage ../development/python-modules/mediafile { };
|
||||
|
||||
meinheld = callPackage ../development/python-modules/meinheld { };
|
||||
|
||||
meld3 = callPackage ../development/python-modules/meld3 { };
|
||||
|
Loading…
Reference in New Issue
Block a user