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