nixpkgs/pkgs/development/python-modules/serpent/default.nix

35 lines
697 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, lib
, python
, isPy27
, enum34
2019-10-26 22:58:10 +01:00
, attrs
, pytz
}:
buildPythonPackage rec {
pname = "serpent";
2020-06-06 07:47:31 +01:00
version = "1.30.2";
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:31 +01:00
sha256 = "72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a";
};
2020-05-04 19:32:01 +01:00
propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
2019-10-26 22:58:10 +01:00
checkInputs = [ attrs pytz ];
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A simple serialization library based on ast.literal_eval";
homepage = "https://github.com/irmen/Serpent";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}