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