python3Pacakges.okonomiyaki: init at 1.3.2
This commit is contained in:
parent
82a7b2717f
commit
601006e6ba
47
pkgs/development/python-modules/okonomiyaki/default.nix
Normal file
47
pkgs/development/python-modules/okonomiyaki/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ buildPythonPackage
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, attrs
|
||||
, distro
|
||||
, jsonschema
|
||||
, six
|
||||
, zipfile2
|
||||
, hypothesis
|
||||
, mock
|
||||
, packaging
|
||||
, testfixtures
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "okonomiyaki";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "enthought";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-eWCOuGtdjBGThAyu15aerclkSWC593VGDPHJ98l30iY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ distro attrs jsonschema six zipfile2 ];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \
|
||||
--replace 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #'
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace okonomiyaki/platforms/tests/test_pep425.py \
|
||||
--replace 'self.assertEqual(platform_tag, self.tag.platform)' 'raise unittest.SkipTest()'
|
||||
'';
|
||||
|
||||
checkInputs = [ hypothesis mock packaging testfixtures ];
|
||||
|
||||
pythonImportsCheck = [ "okonomiyaki" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/enthought/okonomiyaki";
|
||||
description = "An experimental library aimed at consolidating a lot of low-level code used for Enthought's eggs";
|
||||
maintainers = with maintainers; [ genericnerdyusername ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
|
@ -6911,6 +6911,8 @@ self: super: with self; {
|
|||
|
||||
oemthermostat = callPackage ../development/python-modules/oemthermostat { };
|
||||
|
||||
okonomiyaki = callPackage ../development/python-modules/okonomiyaki { };
|
||||
|
||||
okta = callPackage ../development/python-modules/okta { };
|
||||
|
||||
olefile = callPackage ../development/python-modules/olefile { };
|
||||
|
|
Loading…
Reference in a new issue